> I'm sure the military is similar.
Ironically, Roll Call is a formal concept in the military and rarely used after training. But the concept of accountability certainly exists.
This varies by country, branch of service, and job, but it’s fairly common for young airmen (enlisted troops) in the USAF to be docked pay after showing up late to work a few times. The punishment usually goes something like a stern warning-> light paperwork-> paperwork in your permanent file and formal counseling. The next step is non-judicial punishment (named so because your only option is to accept the harsh punishment or be court martialed), which could mean any combination of confinement, demotion, forfeiture of pay, or several other things. The only things left after that are being discharged or sent to prison. And that’s for being late to work. If you backtalk the wrong person you could be demoted with no warning.
And I know the Air Force Academy takes attendance every class because I had to. The registrar would occasionally audit the attendance system and notify the department chairs of instructors that didn’t log their attendance.