Why do pancakes get bubbles?

Baking powder makes carbon dioxide gas bubbles that lift the batter as it cooks.