The story
A baker leaves a mound of dough in a warm kitchen. Later, it fills much more of the bowl. The dough did not create extra flour, and it did not pull in a hidden supply of dough from outside. Gas has expanded spaces within it. In yeast bread, much of that gas comes from living cells that are too small to see without magnification.
Baker's yeast is a fungus that lives as single cells. It uses sugars and releases carbon dioxide, a gas made of carbon and oxygen. In wheat dough, a stretchy protein network holds many tiny gas spaces. As carbon dioxide enters those spaces, they expand and push the dough outward. The rising loaf is a partnership between a gas producer and a material that can hold the gas.
Cut a finished loaf and its holes reveal part of that story. The cells did chemical work, and the dough trapped the result. When baking begins, gas expands further and the dough eventually sets into a firmer structure. Warmth can speed yeast activity, but excessive heat kills the cells. A rising time is not one fixed number for every recipe. Temperature, ingredients, and yeast amount all affect the wait.