This is the magic of the Fountain. After upgrading it with time spheres it gives you 40 energy three times and then goes back to level 1. 

Here you can find more information about Time Fountain.