Question: why is mechanical energy conserved?
Answer: Mechanical energy is conserved so long as we ignore air resistance, friction, etc. ... Energy is "lost" to friction in the sense that it is not converted between potential and kinetic energy but rather into heat energy, which we cannot put back into the object.