I am no T but it is possible that you had repressed emotions come to the surface that you did not know were there. You could have been triggered when you saw the person you have feelings for and these emotions that might have been bottlenecked started seeping up to the surface and it all was too much for you to handle. I think getting out emotions is a release that helps us in the long run. But at the time it is very distressing and scary. Keep feeling as we are meant to feel and when you have the urge to cry then cry.
I am full of grief over the loss of family members including 4 legged ones and sometimes these emotions come from triggers and sometimes they come from nowhere. I hope this helps in some way.