Compounding is reinvestment. A return, left in the account, becomes part of the base that earns the next return. The second year's gain is calculated on a larger pile than the first year's, if there was a gain.
One hundred dollars that grows by 5 percent a year, with the gain left in place, is not 100 plus ten dollars after two years. It is 100 times 1.05 times 1.05, which is 110.25. The extra quarter is the compound. Change the rate or the years and the pile changes. The shape of the sum does not.