Quite often the manufacturers of the consoles don’t earn much money on selling their consoles. More often it is the other way around, they lose money. But so they sell much more of the consoles. And with that, they also sell more games and accessories like controllers and so on. With that additional stuff, they earn the money and compensate for the losses by selling the consoles cheap.
Latest Answers