Not entirely true -- the presumption now is that the company owns the IP for stuff done on behalf of the company. Of course, this is just a presumption, so it's easily rebutted, by example, showing that you received no compensation (no one works for free).
But the legal uncertainty would discourage investment.