Was this wrong? And if it was please tell me why!!

So I work in retail. 10 min before we closed a group of women walked in. After greeting them I said... "Just so you know we close in about 10 min but stay as long as you like" they said okau and looked around for about 30 sec then stormed out. As they left I over heard one of them saying something about something I said.

I wanwtes to know what I did wrong so i went after them and askes.

One of the women yelled at me and told me that it was rude to tell people when you close. I said sorry and walked away

Is it really unprofeasional to do this? I have been told cloaing times before and I dont understand why it would be wrong!