Answer:
As far as I know, the word 'hi' originates from the 15th century phrase hy/heigh which was used to seek/attract attention of another person. The first recorded/archived usage of 'hi' as greeting was in 1862, American English (first recorded reference is to speech of a Kansas Indian).
Explanation: