I didn't get the impression these were hourly employees, or that this was restricted to hourly employees.
It seems to be less about "How many hours were you in the building?" than "Which days did you come to the building?" which tracks compliance with an RTO mandate that even affects salaried employees.
Salaried employees are typically expected to work 5 days a week, hours not tracked. But tracking attendance and the designated work venue seems very fair to me.