Chances are that you probably DIDN'T spot an air marshal and some random joe is wondering why you are thanking him.
The odds of having a federal air marshal on your flight (unless you are flying to/from DCA) are about the same as winning the lottery.