The Arabic name for  place of many springs,  variously recorded as Magerit, Mayrit or Magrit, eventually evolved into Madrid.
Madrid stems from the name for "Place of many springs" because there is a lot of water.