ehy can't a machine be 100% efficient?

I answered that already. As you get to smaller devices, 100% efficiency might be possible. A single atom can be 100% efficient for converting electronic energy to light, or vice versa, for example.