Mobs will do that if they figure that they can loot and not end up dead in doing so.
Looting occurs due to the absence of law enforcement, riots occur with the presence of law enforcement.