Mastrubating and I squirted out clear liquid?

What happened? TMI it felt really good and all of a sudden liquid just squirted out of me and went like 5 inches away from me... what was that/ what happened? Would that happen during sex?... I'm a virgin so