“We use encouraging words in the English language for helping someone out especially when they are not doing well. We want to encourage each and every person to keep on doing their best.”
The most important thing to understand about the idiom is that you are not supposed to take them literally but you are still supposed to take them seriously. There’s a deeper, implied meaning beyond any idiom regardless of the language it’s spoken in. This is especially the case in the English language where there are hundreds, if not thousands of idioms that can be used for any matter or circumstance.