The Sun God is the end of the line for the Super Monkey's sun-based upgrade path in the Bloons Tower Defense games. It is not a glitch or a hidden easter egg — it is simply the final tier, which is why it appears the moment you buy that last upgrade.
Each Super Monkey path tops out with its own capstone ability, and the Sun God is the payoff for investing everything into raw attack power. Once you purchase it, there is nowhere further up that branch to go, so the transformation is automatic and permanent for that run.
Because it is expensive, the Sun God usually arrives late in a round set. If you want it sooner, prioritise popping income early so you can bank enough cash before the later waves overwhelm the track.