They have this feature, it is called Hand-off I think. It works between iPhones and HomePods. Additionally there’s “control other devices”, which allows controlling the music played on other devices. That is between most Apple device categories, although I’m unsure about Mac support for it.