The reason for this is that "Friend" is a direct address, and therefore does not need to be separated by a comma. If the phrase were written as "Hi, Friend," it would imply that "Friend" is the name of a person, rather than a general term of address.