In my case, it was a bet, made before I was born. If I was a boy, my father will name me as his father. And if I was a girl, my mother will name me as her mother.
And as such, I have the same name as my grandfather.
Same thing happened with my brother, but he instead has the other grandfather's name.