Companies like Twitter, Facebook, etc, regardless of what technology they invent that is of use for the public, often healthily contribute to the open source ecosystem. Twitter has contributed a lot to the Scala ecosystem, and Facebook to the PHP pseucosystem.
They also fund/maintain OS project they themselves use. Facebook, through their FriendFeed acquisition, obtained Tornado [1] and have maintained it very well since. I use Tornado every day.
I get your point but your anger is misplaced if you think the large "SV tech companies" don't "invent". You want tech companies that don't contribute anything to mankind? Look at purely closed source hardware companies.
[1] https://github.com/facebook/tornado