If we consider the amount the widow put compared to the big amount of money the rich put in the temple treasury, we can see that the rich put more money than she. But in the eyes of God, she put more money.
There was something Jesus saw that she was doing, which the rich people did not. That something made her to put more money, in the eyes of God than all the rich people putting large amounts in. God was not looking at the amount in the box. He was looking for something else, which he wanted to see and was pleased with, which all the other rich people did not see.