This is because the shape of a canyon, with its steep sides and narrow bottom, resembles a pipe or tube. The Spanish word "cañón" itself is derived from the Latin word "canna", meaning "reed" or "cane".
So, while canyons are a geographical feature found in many parts of the world, the word we use to describe them has its roots in the Spanish language.