It has to do with third party management.
From Latin tertiārius, from tertius.
Practice speaking and memorizing "terceiro" and many other words and sentences in Galician.