The reason they're not doing any work is because they're waiting for their code to compile!
Seriously though the managmentmanagement literature I've seen indicates that the amount of productive time (ignoring toilet breaks, coffee breaks, nose picking, surfing etc.) people spend at work is actually surprisingsurprisingly low. To the extent that the average is something like 50% and if someone's doing above 60% it's an achievement, and that's just actuallactual productive time spent. If you've also got meetings to attend and other office stuff your actuallactual time spent coding can get quite low which is a fact often forgotenforgotten by PMs and other managmentmanagement types when arranging work plans.
Secondly high levels of effort are just not sustainable over the long term. To avoid burnout people should be operating at an average of around 60% of peak capacity. Higher levels of activity are offof course possible and required but their needsthere need to be corresponding periods of lower activity to recuperate. The concept of going to work every day and giving 110%, as some people seem to like to proclaim they do, never happens and those that try it are just heading for an early visit to the mortician.