They only recently started making money with every sale of a Xbox 360. Typically console makers sell their hardware at a loss to get it into as many hands as possible and then make money with software.
That is why Nintendo is taking such a bath this generation. People buy a Wii for the novelty and only get one or two games where Microsoft and Sony are much more about the games they have on their consoles.