That's not really how it "ended up"? Yes, there are always losers when investing in new technologies.
But the steam engine was an amazing invention, and ended up propelling humanity forward.