And don't forget Jimmy Carter and Bill Clinton. There was never any criticism of them not being qualified.
But, you are not qualified if you are the Governor of Alaska for some reason.
Resigning without finishing a term might have something to do with it.