Spotify lets you disable Explicit-tagged songs, if that's what you want: https://support.spotify.com/us/article/explicit-content/
Besides that though, I don't really know what we should expect. Kids are going to Google stupid stuff as long as they have access to the internet, and as long as the internet isn't moderated they will usually find that stupid stuff. Services like Spotify and YouTube don't really have some social obligation to redirect them to a Rolling Stones song instead of the next Skibidi toilet video.
Your request is missing the product research and feasibility part, which is that there's likely 0.1% or less kids that navigate and select songs on Spotify.
This means this likely has no business case, and you can imagine how laborious tagging and labelling music is.
As somebody else pointed out, one could avoid explicit songs, but that might not work as expected, as that song you mentioned yourself could be labeled as explicit.
Whenever something doesn't work the way you expect, maybe it's worth applying common sense knowledge to figure out whether it doesn't work the way you expect because the money incentive isn't there or just because it would be tough to build it.
If passing along particular cultural artifacts to your children is important to you, don't delegate the responsibility to an algorithm managed by a for-profit business.
Also:
> Is Spotify appropriate for my child?
> We have designed Spotify to be appropriate for listeners 13+ years of age, although the minimum age for using the service varies according to local law.
> What if my child is too young for Spotify?
> We encourage you to check out Spotify Kids, our separate, ad-free service designed specifically for children 12 and younger.
https://www.spotify.com/safetyandprivacy/files/Parental_Guid...