Keeping kneaded flour kept out for a long time in summer makes it sour.
Kneaded flour has a rich supply of nutrients, water and high temperature provides ideal for conditions for growth of microorganisms. The microbes use the nutrients and release acids that spoil the dough.