If an employee is measurably unproductive for a few hours regularly, then the assumption is that their manager has failed somehow. I agree that this is most likely not an accurate conclusion, but it is a prevalent one.
I live and work in France, where you legally have 5 weeks of PTO. The 5th week has been introduced 40 years ago. And yet, it's still hard for a lot of HR departments to make sure that employees properly take all of their PTO each year. Contrary to what seems to be popular belief, left unsupervised with goals to reach, it seems that most people tend to overwork themselves rather than laze off.
I would like to add more subjectively: as a company, I would also be afraid that contracts defining payment based on piece work result in an army of quasi-consultants. This might push the company towards: optimize your efforts against some agreed-upon metrics (see the previous point about goals), and go home. I suppose there is some benefit for a (software) company if its employees spend time at work "slacking" such that they might actually find useful things to do that none of their managers might ever notice.
People with the liberty to have goal driven work are generally exempt (there is also a pay threshold, but the freedom of goal-driven work usually only comes with sufficient pay to meet it), and not the workers impacted by this bill. Giving people the freedom of goal driven work and the minimum salary for exempt status is a way for employers to not have to worry about this requirement, which does push people to that by making it more expensive not to do it.
If you're being paid regardless then what does it matter if you're "on the bench" for a few hours or you leave early for the day? A lot, if we're talking about employee morale. Not much if someone is sitting at their desk trying to find stuff to do.
So long as there is effective communication (which I know can be a challenge) then it really doesn't (or shouldn't) matter when a person is working if the gets done. No?
40h (or 32h) work weeks make even less sense when you work remotely.