Android notably does have some good apps for making music on it. There's a version of Cubasis on Android, Koala Sampler is on Android, Google had Teenage Engineering build a music app for Pixels, and I'm sure there's many other apps that have found a way to make it work, though I know for a fact that Koala Sampler has had issues with input latency due to the audio stack on certain Android Devices (where it becomes unplayable).
Apple's done a lot of work to make it a viable workflow on iOS/iPadOS. inter-app audio, AUv3, actual support for tablets, and a good audio stack are just some of the things they've done to make it a real platform for musicians. Google would have to put in a lot of work to make Android at all attractive to musicians and frankly I don't even know if it's worth their time. Still, they can do it and they've done a fairly good job of improving the state of Android for visual arts on tablets, so it's not impossible. Just a lot harder.