What Passing Through said.

But I will add it can also be used with the meaning of "for no particular reason" (i.e., just/only as per Humbert's post).

For example:
"I'm just asking" (for no particular reason) ถามเฉยๆ
Or when someone gives someone a gift for no special reason ให้เฉยๆ