Are you in the US? Do you work for hourly wages?
I've always been confused why salaried workers think they only need to work 40 hours a week. There's an employment agreement between you and your employer with expectations on what tasks you'll perform. Rarely (never in my experience) does the agreement include you only work 40 hours a week.
I don't have an issue with your overall sentiment. I'm mostly confused about conflating things like overtime and a 40 hour work week when most folks in tech in the US are salaried workers.