Why is a machine not 100% efficient?
Different parts of the machine are not smooth and rigid
String in it (if any) is not perfectly elastic
Moving parts are not weightless
A machine is not 100% efficient because a part of work done on the machine is wasted in overcoming the friction between the various parts of the machine. Its moving parts are not weightless. The string in it (if any) is not perfectly elastic. The different parts of a machine are not perfectly rigid and also not perfectly smooth.