Retirement has nothing to do with it, filing is based on income.
If you are over 65 and married to someone over 65, if your income (not including Social Security) is greater than about $11,000, you may have to file.
Compensation isn't the only type of income.
Snipes