Here is a 20k Hertz podcast about Ghost artists behind the real artists: https://open.spotify.com/episode/7ll2fKycYLy2KZxm12toS4?si=p...
Basically - the 'real' artists do exactly the same thing. They use ghost writers and producers that make the song and then the 'brand name' just records it, without crediting the producer.