Every town that fell had a known decree.
Nothing ends by accident
Ibn Kathir says Allah never destroys a town until He has given it clear evidence and its time has run out. This was a warning to the people of Makkah to leave their stubbornness while they still could.
You notice the doctor's warnings, the friend who keeps saying something is off, the small signs at work. Warnings come before endings. Hearing them is a mercy, not a nuisance.
Bad endings just happen out of nowhere.
Allah sends signs first; the end comes only after the term is written and met.
Think of one warning someone gave you recently. Take it seriously for a day.