@Chuckjordan2, I grew up being thought the magic words too ... : )
For me in general, there are two things someone wants to express, when saying "thank you".
One would be to acknowledge his/her good fortune, thanks to other person's behavior, second (and foremost) to acknowledge someones good...