Jesus is all for us helping out the poor. He is also all for our fasting’ and he is much in favor of our giving time to praying. But what he is against is our doing such good things to be seen by others.
Why is he against or doing good for people to seen? You might say he us against such doings because it makes hypocrites of us. That is so, but he has a much bigger reason for prompting us to not show off for people.
His reason for us doing such things in secret, Is that if we do them only for our heavenly Father to see, then they will deepen our sweet relationship with him. And, than that, there is nothing that could be most valuable for us..