Why does bread get fluffy?

Yeast or baking powder puffs dough with gas pockets trapped in stretchy gluten.