Why was Joshua a patriarch?

Joshua is not a patriarch, so there is no need to defend why he was.

The Patriarchs are Abraham, Isaac, and Jacob.