The main reason is that most startups fail, and being a developer and transitioning to an entrepreneur is a huge leap. The gap is big. It takes a lot of effort, money, emotional strength and perhaps, some luck. So getting a job and decent salary ($250k in Google from today's top post) is usually the prudent thing to do. I wouldn't advise every developer to try and be an entrepreneur. That's just bad advice.