They aren’t fighting, in fact their competitiveness is based on Apple’s problem with marketing their brand as Microsoft only make Software and Apple not only have to convince Windows users to switch Operating systems, they have to convince them to buy a completely new Operating System. This is why Linux OS’s don’t attack Microsoft, they simply provide an alternate OS.
Microsoft and Apple actually work together often, and note they always attack each others products, not the companies.