The boy said this because he didn't agree with your practice or your point of view, but he didn't think it was necessary to quarrel with you because of this trivial matter, and he didn't want to lick your face and kiss your ass against his conscience to praise how well you did, so he simply said, it is good for you to be happy and look like a gentleman. Actually, he's letting you go.
Girls say it is good to be happy:
First of all, you have to look at her tone. If she is happy or gentle, then she is very coquettish to you. If you are calm or talk with your head down, you are helpless. Even if you say it, you won't listen, so just say you're happy, and you won't listen anyway.
Also, remember, if a girl says you are happy, she is probably not in a good mood. Pay attention.
It's good to be told that you are happy.
Only you can make me happy.
Your sadness is the source of my happiness.
Please tell me what makes you unhappy and make me happy!
Really interesting
What can my happiness make you feel?
I can only be happy if you are happy together.
I am happy because of you.