pooping in the bath

Charley

My daughter is 20 months old so almost 2 year old and everytime she's in the bath she poops. I have no idea why and she only seems to do it when I bath her. She doesn't do it when her dad or granny baths her. She gets upset when she does it and cries saying poo eww. When she does this I lift her out and put her on her potty and hold her hands and talk to her to encourage her to finish in her potty but she won't do anything in the potty. I don't know how to help her with this or what to do really. I'm a first time mummy. Any advice?