Because in a 45-45-90 triangle, if we call each of, if we call one of the legs X, the other leg is also going to be X. and then we can use the pythagorean theorem to figure out the length of the hypotenuse.