If higher education, schools also typically have a range of classroom / lecture room sizes which office building are poorly suited to match. Seminar-to-classroom size (5--30 students), perhaps, but not mid-to-large lecture halls (100--500 or more students), without some major redesign.
Though theatre conversions might work. I'm thinking of a lecture hall with Imax A/V capabilities....
That's one potential alternative use, I'm sure, but probably not the best.
I think this is exactly the problem many folks are proposing we solve, by doing things like changing out some of that unused office space dor schools and housing.
It's basic market economics. Use the space for things we need, things that are in demand and space for which is scarce, not for things that are in surplus and have a flooded market.
Schools (and housing) not located near business districts results in roads, with traffic. And for schools versus businesses two ends of the same commute (train or car)
Where one of the more visible ways the greatest generation built schools for boomers, boomers instead built pre-fab buildings for schools.