I don’t think with todays developer salaries, there’s any space left for that good old “work is slavery” message you’re sending. The HN crowd is huge so I’m sure there are exceptions, but most people reading your comment can switch jobs whenever they want. Not without stress, but without real risk.
Sure, the company can't avoid paying you. But in exchange they get 2/3 of your waking life for 30-40 years and 100% of your production. Some companies are better, some are worse. All of them have lawyers that, should you cross them, will make you regret everything. I am at a relatively relaxed company (compared to FAANGs) and even here I had to go through a ton of channels and sign paperwork to even begin work on an open source project.