Welcome to CM.
Though the urine and semen come out through the same outlet, internally its a valvular mechanism. Only one can come out at a time.
What u see is just urethral secretions or smegma
and hence there is no need to worry.
This is natural, u cant do anything about it and not harmful.