Andalusia's three major cities sit within a 300-kilometre triangle connected by high-speed trains. Seville is the largest and most visited — the one with the biggest cathedral in the world, the Alcázar palace, and the densest concentration of flamenco bars. Granada has the Alhambra, one of the most-visited monuments in Spain, and a tapas culture where every drink comes with a free plate of food. Málaga is where you slow down: a coastal city with good museums, the beach 10 minutes from the old town, and an airport that handles most international flights into Andalusia.
The route works because the cities are different enough that you're not repeating yourself. After three days in Seville's flat, sun-baked streets, Granada's hillside quarters and cooler air feel like a different country. After three days in Granada walking cobbled lanes at altitude, Málaga's seafront and beach feel earned. The Renfe AVE connects Seville to Granada in 2h 40m; Granada to Málaga in 1h 15m. You fly in and out of Málaga, so there's no backtracking.
One optional addition: Córdoba. It sits 45 minutes from Seville by AVE and holds the Mosque-Cathedral, one of the great buildings of medieval Europe. A day trip from Seville on Day 3 adds it without disrupting the schedule or requiring an extra hotel.