A machine is, not 100% efficient because :
the output of the machine is always less than the input.
In a machine, there is always some loss of energy due to friction between different parts of the machine, as a result of which the output of the machine is always less than the input. Hence, no machine is 100% efficient.