I was presuming that they were going to be in Barcelona for 5 days and, on one of those, wanted to spend in Santiago de Compostella
And, just as importantly for them, flying is likely to be both the quickest and cheapest way to travel between the two cities