The answer to that one is simple: they were bad at software.
Apple and then Android killed the market for all those hardware devices and physical media.
Apple and Google were much, much better at it.