Actually most banks did make money from those transactions. They knew it was a bad debt so they sold it before people defaulted. The US housing bubble actually ended up sucking up a lot of money from the rest of the world and dumping in on the US economy.