Security agencies have documented cases where real-time messaging apps were used to coordinate stone-pelting and mob violence during unrest, and a temporary shutdown is a narrower, more reversible tool than deploying additional force on the ground to prevent escalation.
Cutting off the internet just feels like punishing everyone, including people who had nothing to do with any trouble, just because it's easier than actually dealing with what's going on.