It was an internal breakdown at Apple and good old-fashioned computer thievery (and marketing) that later booted Windows to the top over Macs. Macs came back with their niche marketing but it has expanded slowly but surely. The niche idea is still pretty prevalent but is not the only thing sustaining them.
Mac won, then lost, and is now trying to push forward.