In modern mathematics, euclidean distance is defined using the Pythagorean Theorem, that is, by a formula such as $\sqrt{(x_1 - y_1)^2 + \cdots + (x_n - y_n)^2}$. A priori there is not a reason why this should be the definition of distance, but this definition comes from how distance was used in classical geometry (Euclid's elements).
Is there a way to attain distance from more primitive ideas/notitions in euclidean space.
Picture a polygon made of pythagorean triplets: $$(3,4,5), (5,12,13), (13,84,85), (85,132,157)$$ Now picture each of these triplets being orthogonal to all other triplets because the plane of each extend into higher dimensions. The Pythagorean theorem works for any number of dimension $[>1]$ so:
$$3^2+4^4+12^2+84^2+132^2=157^2$$
or $$f=\sqrt{a^2+b^2+c^2+d^2+e^2}$$ If you draw a crude picture, you will see that every $2^{nd}$ and subsequent side-A [odd] is connected to side-C of the previous triangle. You will also see that every hypotenuse has one end at the origin.