Am I wrong for being annoyed

My 6 year old daughter will sit at the table and watch tv, I mention I’m gonna go shower, and I had to use the bathroom. As soon as I get In the toilet, she’s banging at the door crying and whining demanding I get off the toilet because she bees to go, she rattled The door handle and knocks and knocks untill I get angry and she will say I have to pee, I have to pee. This is every single time anyone gets in the bathroom, it irritates the hell out of me