Read the “1” unit side as “move left 1 unit” and the “i” side as “move up i units”, and the hypotrnuse is the net distance travelled.
The imaginary line is perpendicular to the real line, so “up i unit” is equivalent to “right 1 unit”. The two movements cancel out giving a net distance of zero.