Why one Welsh village name has more than 20 spellings

Trellech, Tryleg, Trelech or Trelleck? Why one Welsh village is spelt in so many different ways.