Names also have meanings.
Sonia - Comes from the Greek name Sophia meaning wisdom.
Sotomayor - Parsed, soto means thicket and mayor means great or greater. So at its simplest Sotomayor means "the Great Thicket." It is an old family name from the Andalucia region of Spain. There are two stories how the name came to be.
The simpler is that many centuries ago a noble family took its surname from where it settled, the Valley of the Thickets; in colloquial Latin of the region: Sotomayor.
The more complicated story, described here, is that the tutor to the son of a Galician king in the time of the Goths threw a spear into a thicket not knowing that the king's son was playing there. The king understood it was an accident and forgave the tutor. The tutor, in turn, took the name of Sotomayor to honor to slain boy.