What does it mean boy calls a girl sweetheart?

he is being nice Well, my best friend calls me sweetheart and he is gay.