>but if you go online and look up the definition, you will be told it also means goodbye, which it really doesn't, but I think this arises from the fact that it's a bit more relaxed form of thanks, so people frequently say it as thank you at the end of an interaction where directly thanking the person might sound a bit awkward or overly formal.
Possibly also because of the phonetic similarity with "ciao"?