Points (0, 0) and (0, 3), when joined, form a vertical line from the origin - a line that lies on the y-axis
Points (0, 0) and (4, 0), when joined, form a horizontal line from the origin - a line that lies on the x-axis
These lines are PERPENDICULAR, and so, form the legs of a right-angled triangle.