gratitude - Dictionary definition and meaning for word gratitude
It's considered as GR(eat) ATITUDE to thank someone when he/she has been good to you ! Hence the meaning !