That’s to prevent them from pulling out their stitches for the most part, I think.
On their own, dogs will lick their wounds endlessly until they heal.