why is carnot engine has maximum efficiency?
Basically the Carnot cycle assumes no entropy so that there is no heat lost (which is impossible in practice; this would mean perpetual motion), it is by definition the most efficient model possible since it requires all heat produced to be turned back into work energy.