"Why IBM had to fire the employees, if their
products are faster and better than Intel CPUs?"
IBM is a big company, they do a lot more than just processors. IBM manufactures embedded CPUs, desktop CPUs, server CPUs, servers, desktops, laptops and offer a lot of different kind of services.
So, from what department did they fire employees?
An example: Nokia (as whole) continue to make profit and they gain more and more market share on cell phone business and at still they fire people (from the cell phone networks division which is not as profitable business).
btw. here might be some relevant reading (about CPU performance):
http://www.barefeats.com/pentium4.html