Flour is a key ingredient to any type of baked product. It contains the main component for dough texture and structure development: Gluten.
Gluten makes up 85-90% of the protein content found in wheat grains.
It is a water-insoluble network that makes the dough elastic and stretchy due to a series of hydrophobic bonding and disulfide bonding involving amino acids during mixing and kneading.
The higher the content of protein present in your flour, the more gluten it can develop.
So, for your next baking session, consider checking the protein content of the flour you are about to use. Typical yeast bread require at least 12% proteins and higher, while cakes and cookies only require 12% below.