People keep telling me this too, so I’d be super interested to know if it wasn’t the case, because it really feels like a weak/overinflated reason.
Most office buildings are reinforced concrete floors, supported by internal load bearing columns, with glass facings.
... that's exactly the same as a hotel.
Hotels have per-unit bathrooms, typically stacked on top of each other (floor over floor).
Ergo, you can frame out/lose some space to cut several hotel-like vertical utility paths, plumb pipes from them to each floor's bathroom (or HVAC), and Bob's your uncle.
Actual reasons would be things like office floors are built to lower load bearing standards than residential... which I don't believe is true.
[1] https://pdfs.semanticscholar.org/da2d/49a0090e8631ff08eb4813...
[2] https://journals.sagepub.com/doi/pdf/10.1080/004209805003803...