He obviously thinks you need to lose weight. I don’t know how much weight you have gained. He clearly told you rudely and bluntly. Perhaps he was hinting at it for a while and decided to be rude.
He probably views renewing of vows something he would do for you. And maybe he thinks you losing weight should be something you do for him. Who knows.