This is quite simply not true. Perhaps you forgot to add that there is some restriction on the legs of the triangle, e.g., they must be integers?

If the legs are length a and hypotenuse length x, we get the relation

2a^2 = x^2

x = a*sqrt(2)

Obviously letting a = 1/sqrt(2) will result in a rational hypotenuse.