It's very much a residual of the 20th century work construct. Now that many office workers are capable of working from home, this shouldn't even be an issue that comes up. Unless I'm completely bedridden, I work from home when sick...and my group knows that. So they never have an issue if I don't come in. Still productive, still hitting deadlines, just not there physically.
This assumes everyone can do everything from home. But more than that, I think it was understood that people should stay from others if sick. Sick people who had to work due to circumstances would just be holed up in an office or room by themselves and that was viewed as okay. Few considered that they might have gotten dozens or more people sick going to and from that location (i.e. commuting) or in common areas.
I do think that there will be some change as to how this is viewed, but then on the other hand, look at young people, even right now where the number one discussed thing is a virus. Those young people will be the ones populating our work places in ten years.