Is alimony money received from pre 2019 divorce agreement earned income? And if not how did TurboTax software allow contribution to Roth when there was no earned entered

Note the pre 2019 agreement has not been modified. So ex husband gets to still deduct amount paid and sister pays taxes on alimony received. Retired with no additional income.