I don't know how it is in most countries, but in the United States, an employee gets unemployment when they get laid off. A founder gets nothing when the company goes under.
Also, I know of a lot of companies that consider self-employment the same thing as unemployment. I've made more money as a freelancer in the last 3 years than I ever made working for anyone, and I've produced more code in that time to boot, so I think it's been a pretty good measure of my productivity. But as far as your run-of-the-mill cunsoltoware company is concerned (and let's face it, the long-tail of such companies is the majority of places where your average software developer can expect to get hired), I might as well have been on a 3 year vacation.
So IDK, seems like there are a lot more implicit risks to being a founder other than just "everything could go belly up and I have no retirement".