Have you previously annoyed them in some way, or had a disagreement?
Were they in the middle of a proper conversation and might’ve felt like you butted in with a greeting?
It sounds odd. I’d have a think about whether you’ve previously annoyed them in some way, but if not then they might just be grumpy. In which case there’s nothing to worry about, and you just do you.