Here's why:
* Latin is the ancestor of Romance languages, including Spanish. It was spoken in ancient Rome and used for writing and administration.
* Spanish evolved from Vulgar Latin, a dialect of Latin spoken by common people in the Roman Empire. This evolution began around the 3rd century AD, long after Latin was established as the language of Rome.
So, Latin came first, and Spanish developed from it later.