You’re thinking too much about it. Take the compliment and move on with your day!
Trying to psychoanalyze why anyone says anything to you at any given time is a recipe for dissaster.