This is probably simply curiosity on your sons part ,it is possible the girl has learned the behavior somewhere, and is passing it on , perhaps mention it to your friend as she may want to address it with her Daughter, as your son is only 3 year old and you have explained to him it is not a good idea,simply let it go ,be aware that it has happened and keep an eye when he is playing , have the children play in an open setting ,a park etc, so many children go to play in bedrooms and solitary places when they visit friends ,keeping them in eye sight is a good idea,