To play devil's advocate -- you have to think about bad actors though.
What if that makes someone think, I can do zero work at my job and I'll get paid regardless? Or they do a super bare minimum, being incredibly unhelpful to everyone and their whole team hates them?
Now you're going to have courts deciding what constitutes grounds for firing and what doesn't, if performance was above or below a super bare minimum, how that's defined for a programming job, etc.
What if that makes someone think, I can do zero work at my job and I'll get paid regardless? Or they do a super bare minimum, being incredibly unhelpful to everyone and their whole team hates them?
Now you're going to have courts deciding what constitutes grounds for firing and what doesn't, if performance was above or below a super bare minimum, how that's defined for a programming job, etc.