Why did he grab me and hug me tight?

So my ex and I broke up because he cheated and he was crying I could tell his eyes was watery and he wanted to talk about the situation but I didn't want too so I tried to walk away and he grabbed me and hugged me tightly for a long time and I told him not too touch me but he wouldn't listen why would he do that?
Why did he grab me and hug me tight?
Post Opinion