The sugar and flour act as a coating to ensure that the berries don't drop to the bottom of the muffin batter while baking.