The bulk $\mathrm{LaMn}{\mathrm{O}}_{3}$ (LMO) is antiferromagnetic (AFM) at low temperature, whereas its thin films growing on $\mathrm{SrTi}{\mathrm{O}}_{3}$ (STO) substrates are ferromagnetic (FM) in experiments. The underlying mechanism driving this AFM\ensuremath{\rightarrow}FM transition remains elusive and has attracted significant research interest. In bulk LMO, the $\mathrm{Mn}{\mathrm{O}}_{6}$ octahedra exhibit substantial crystal-field distortion. Our study reveals that the lattice mismatch between LMO films and STO substrates induces this magnetic phase transition in the ultrathin regime. The epitaxial strain effectively suppresses the octahedral distortion in LMO, leading to near degeneracy of the two Mn ${e}_{g}$ orbitals. This alteration in orbital energy splitting modifies the exchange interactions, thereby changing the magnetic ordering. Test calculations with varying octahedral symmetry by strains reproduced the AFM\ensuremath{\leftarrow}FM transition in LMO films, demonstrating a close correlation between the energy splitting between the two Mn ${e}_{g}$ orbitals and magnetic order in LMO. Based on these findings, we propose a superexchange mechanism driven by orbital degeneracy, offering a straightforward explanation for the magnetic transition in LMO films.