Someone can be imperfect without being stupid.
In fact pretty much anyone who isn’t stupid is.
And Pence at least helped to get him elected.
Trump would not have a veep who he did not trust.