Etymology
Today it means: A greeting; hello. Full definition →
The interjection is an application of the noun.
Etymology from Wiktionary, CC BY-SA 4.0.