I don't think he was doing it in any way to offend kim Dan or smth I just think he was kinda angry at himself after hearing kim Dan speak cause he realised just how shitty he was being , I know I shouldn't defend him after everything he did but that's just imo
And then...KIM DAN LIVED HAPPILY EVER AFTER THE END