It's the first time I hear about such expectations. It's nice of someone does it, but not essential. It's never a topic whenever we bring someone new onboard and I personally don't care when hiring new engineers.
Unless you're talking about big corporations, but that's where things are going wrong for a very long time :D
Any company that ask to do homework, has no f*** idea how to hire engineers, and it doesn't matter if they are FB or Google. Most of the time it is just silly HR requirement often forced despite engineering team arguments. I've been there and I argued about that a few times too :D Fortunately, I don't have to deal with that anymore ;)
Soo.. I kinda agree with what you said here as I've seen bad interviews many, many times (one even found a way to my medium post). I also partically disagree becasue there are companies driven by real, down-to-earth engineering teams. But maybe I'm just naive thinking there are any left?