Joshua was clear that he chose to serve the LORD.
Even Calvin states that man has to exercise his will to choose to serve the Lord.
That notwithstanding, Joshua was following the Lord far before this point in time. This was more like a reaffirmation-not a confession.