Why is energy from the sun renewable?

The energy given out by the sun is constant and free of cost making it renewable. Say for instance you have a litre of petrol, at the end of its use it does not replace itself, its gone forever unlike the suns energy.