Im not justifying anything.
If you have a business and it has run into a bit odlf financial difficulty, do you let the business crash and burn or do you borrow money to ride out a slow period?
In principle, it’s no different. By lending Spain the money, it may allow Spain to free enough money to start to pay back debt, providing it doesn’t just find ways to spend the money further.
However, if Spain’s intent is just to spend the money, I would cut it clean and let it fend for itself.
This is not business, though. This is countries and their very existence.
And again, these countries did not want the money in the first place. The governments that refused the money got replaced by governments willing to take it, due to EU pressure on the prior governments.