We know that the Pythagorean theorem applies only to right triangles, therefore the original vectors must be parallel to the legs of a right triangle.
In other words, they must be orthogonal (i.e. perpendicular to each other) in order that the Pythagorean theorem applies.