“Then Jesus was led by the Spirit into the desert to be tempted by the devil.” (Matt. 4:1)
So God decides to face the tempter head on immediately as a man. We shouldn’t think it strange when we face various trials (1 Peter 4:12). God is confident that we will overcome (1 Cor. 13:7). Later on though Jesus teaches His disciples to pray “Lead us not into temptation”, which is a good idea (Matthew 6:13). He probably remembered the trial of it and wouldn’t want us to go through that if it could be helped.
Jesus deals with all the temptations in the same way – He quotes the Scriptures. The devil does too but the heart of what he is saying is wrong.
Once Jesus passes through this He is ready to call disciples after Him. First tested, then trusted. That’s a sequence we all have to follow.