According to Abu Hanifa and Muhammad, if semen separates internally due to desire and emerges later without present desire or forceful emission, ghusl becomes obligatory.
The legally relevant cause is the separation with desire, not necessarily the external state at the later moment of exit.