From Latin tria + castella, both expressed as accusative plural, thus meaning "Three Castles".
Triacastela