Why do people say goodbye if its not good?

Kimberley • British
Also is goodbye a permanent thing whereas just bye isn't?