The laws of thermodynamics and efficiency
Energy is never created or destroyed, only changed from one form to another. Yet every change sends some energy off as heat that spreads out and cannot easily be used again. That is why no machine is ever 100% efficient.
A worked example
A car engine burns fuel holding 200 kJ of chemical energy. It gives the car 50 kJ of kinetic energy, and the rest leaves as heat. The first law says the energy is all still there: 200 kJ = 50 kJ + 150 kJ of heat. The efficiency is the useful output over the input: 50 ÷ 200 × 100% = 25%. The second law says the 150 kJ of heat spreads into the surroundings. It is no longer easy to use.
The mistake people actually make
Efficiency compares the useful energy output with the total energy input, so it can never be more than 100%. The wasted energy is not destroyed. It is still present in the surroundings, mostly as thermal energy, but it is spread out in a form that is difficult to use again.