Why we say “Hello”

Have you ever wondered as to why we begin with ‘hello’ as soon as we answer a phone call. Have you ever thought who used it first and then it became a sort of a custom?