What was his age? If he’s older, like me, it may have been like fatherly advise. Play the field. Marriage is a big deal. Be sure of your decision.
If he’s roughly your age, the question is more likely prying. Are you happy? Can I get my foot in the door to flirt?
If it’s here or elsewhere on the net, you unfortunately have to assume, at minimum, an ulterior motive. 🚩