Question: how is mechanical energy not conserved in a system?
Answer: Mechanical energy is the sum of kinetic and potential energy in a system. Mechanical energy is conserved so long as we ignore air resistance, friction, etc. When we don't ignore outside forces, such as those just mentioned, mechanical energy is not conserved.