Crocheting in a public place

I had a first today. I often travel with yarn and crochet in public. I took my daughter to a birthday party with a magician performing. There wasn’t a big crowd. Me and a few other moms were sitting at the back of the room and I was crocheting. In the middle of his show the magician called me out in a rude, not joking, way. I was mortified.

He later called down a few of the dads for scrolling their phones.

I assumed at a kids party the show was focused on the children and not on the parents at the back.

Was it rude for me to crochet during the show?