It's interesting to note that "hallo" itself has roots in the Old Norse word "háll", meaning "whole" or "healthy". This is related to the idea of wishing someone good health when greeting them.
So, "hi" is essentially a shortened version of a greeting with a long and interesting history!