The same quoted rate earns more when it compounds more often. The effective rate is (1 + rate ÷ periods)^periods − 1.
A rate quoted as "5% a year" does not tell you how much you actually gain. That depends on how often it compounds.
Here is the nominal annual rate and the number of compounding periods per year.
Take 5% a year, compounded monthly.
The label says 5%, but the money grows by 5.1162%. The extra 0.1162% is interest earning interest.
Hold the nominal rate at 5% and vary only the frequency.
It keeps rising, but it does not run away. It converges, and the limit is the continuous case, which takes the beautiful form .
Compound every second, every nanosecond, and you still cannot beat 5.1271%. Euler's number appears here of its own accord.
A card advertising "15% APR" is charging 1.25% a month, compounded twelve times.
The headline says 15%; the debt actually grows by 16.08% over a year.
The advantage flips depending on which side of the loan you stand. Frequent compounding is good when you are lending and bad when you are borrowing.
When comparing financial products, compare effective rates, never the headline ones. It is the only way to put them on the same footing.