It's mandated by law in many EU countries, even in the more privacy focused ones. To track workers working time to prevent or track any overtime hours.
But it's also used by companies to make sure all workers are at their desk for the full 40h, and not doing something else like commuting or 2h lunches. Hence why most companies don't allow WFH. They can't track your working time at home, and they're not allowed to install spyware on your devices, so butts ins eats at the office it is.
France since 2017: le droit à la déconnexion Portugal since 2012: https://edition.cnn.com/2021/11/11/success/portugal-employer...
Jira is explicitly to track the time you put in on specific technical issues/stories so that scrum masters and project managers have an idea how long tasks take, Jira doesn't track how long you spent in the office which can be longer than the amount of coding task you filled.
In a previous company I worked at there were displays in the building showing the current presence/absence of each employee, if they're in the office or not, if they're on sick leave, vacation, etc via icons next to their names on the displays like in some dystopian hellhole. And this was a tech company in one of the richer EU countries. Totally legal btw.