Many, not all of these rappers originally made their money dealing drugs. That is how many of them made the quick money and were able to become overnight producers of their own songs and music.
Not sure if petty drug dealing in thier earlier lives really helped them become successful multi-millionaire rap artists.