Energy doesn't disappear, it just gets changed from one type of energy to another.
Some of the types of energy are what you want, others are just wasted. No energy gets lost - the total amount of
energy you end up with is always exactly the same as the amount you started with.