Yes, but why 9-ish to 5-ish and not...

say, for example, 11am to 7pm? I know that it’s a matter of essential convenience for companies to all be open at about the same time, but how did those particular hours become the standard?

It’s called “sunlight.”