Would y’all consider this wrong and unprofessional?

Me

So I have been unhappy at my current job but wanted to find another before leaving. I just got an offer last night and accepted it. Before this the owner kept asking me if I planned on leaving and said that someone told her I wasn’t happy. I never answered her but am I wrong for thinking that what she did was wrong?