I will not say Messi just had few good games at Copa.
Messi had an excellent 2020/21, especially this year onwards till Copa, when he had the most number of goals and assists.
Argentina and Barcelona were basically give the ball to Messi and pray, at least Argentina played a solid anti-football filled with play acting and fouling at every instance, and a phenomenal Emi Martinez in the goal, which helped them not crumble under pressure like Barcelona.
We tend to overlook how Messi and Cristiano were basically saving the ass of Juve/Portugal and Barcelona/Argentina in Euros and Copa, and club season. Especially at club, given both sides had incompetent coaches.
Lewandowski had similar thing with Poland, not saying he had easy, and I am not one of those who say Bundesliga is easy hence Lewa scores so much, when he is basically scoring at same rate in UCL and Euros.