IDK_'s feed

IDK_ asked question about dogs

So I got 3 puppies and when I'm with them alone they do not pee my room especially in the bed but if my boyfriend is with me like in my room (they are close btw and they like him more) they would suddenly pee on my bed I understand they r young but I don't know why they do that they r 4months old about to be 5