But why that solves the problem? Because it connects two branches of mathematics (modular forms and elliptic equations) in a way that proves that equations of that form cannot exist (where the exponent is > 2)
Though there probably is an easier way of explaining it, it is strongly suspected that Fermat got the wrong idea there.