It's a respectful greeting used in many situations, similar to "hello" or "good morning/afternoon/evening."