When your miles are expiring there are plenty of ways to extend them, depending on the program. In general programs let you extend your miles by earning miles in an account or by redeeming miles.
I frequently use Magazines for Miles to keep family member accounts alive without spending any money. I had forgotten there’s a newspaper redemption option, too. And there are some options I’m finding useful on their own merits, not just to deal with expiring miles.