Isn’t that one of the law of thermodynamics?
Its called entropy.
No cyclical process is 100% efficient, there is always some loss of energy.