If you assume the average programmer will start their career by their mid 20s, ten years seems a little early for "old" programmers to start a mass defection. I would not be surprised if many of the commenters here could be considered "old programmers" by that definition. I don't have a big sample, but in my experience, you're not an "old" programmer until you hit 45-50.
"most programmers end up doing other things as they age"
You base these statements upon what data? Your own observations? Then maybe you need another set of glasses.
There are several million hackers that would disagree with you. Too bad you haven't had a chance to meet too many of them. Probably would have been interesting for both of you.
Where's your data?
I don't know if it's common for project managers to contribute code in other companies. At husband's company, it is pretty much unheard of for for a project manager to write code. Project manager tends to be more of a technical writing/managerial position in his company. There's nothing wrong with that. But I have no wish to be a full time technical writer/manager.
As you grow older, you will want to write less code and focus more on software architecture and management of programmers.
Not to condescend, but that will change in ten years.
I base this not on your gender, but on the observation that there are very few old programmers. Everyone debates the reason for this (i.e. is it age discrimination, or is it programmer preference?) but the fact remains that most programmers end up doing other things as they age.