Well, I suppose I was just a bit harsh. There definitely are opportunities outside of ads. But some industries are more cut-throat than others.
The problem is of course not unique to software. Eg. it may be more lucrative for drug companies to research hair-loss or acne drugs than something like cholera.