And the second year you will be getting interest on the interest you got the first year.
And the third year you will be getting interest on the interest you earned the first two years.
And the fourth year you will be getting interest on the interest you got the first three years.
So this "extra" interest is why it adds up to 12% over the four years (even though each individual year was only 2.87%)