This is also why so many soldiers ended up dead outside of battle, and not from getting stabbed. Why Sun Tzu and Clauzewitz went on and on about logistics.
Bret C. Devereaux has written a series of three blog posts on the topic of pre-modern army logistics that explains that in detail. See: https://acoup.blog/2022/07/15/collections-logistics-how-did-...
Isn't this how Rome was sacked way back when it was just a city among many others in the Italian peninsula? If I recall correctly, this was a wake-up call for the city to start working on protecting itself adequately.
An uncited passage in Wikipedia explains how the French Troops, defeated during their Napoleonic Invasion (1808), burned and demolished Manresa on retreat, and the villagers simply rebuilt the buildings from the same rubble.
https://en.wikipedia.org/wiki/Manresa
I can attest that many buildings downtown are definitely rubble-y.