When something earns compound interest, it earns interest on both the initial principal and all the previously accumulated interest. This means that interest is calculated on the original amount plus any interest that has been added in prior periods, allowing the investment to grow at an accelerated rate over time.