Lady Ayse was not ok with how this guy had been misbehaving publicly. She was afraid that if she did not do something about it, he would continue to misbehave and that is why she had to punish him. She did so painfully and humiliatingly. He never messed up again as he knew what she would do to him if he ever did that again. He learned his lesson the hard way.