He’s only infallible within a very narrow and precise scope, namely, those matters of faith and morals which have remained the unbroken Tradition of the Church since the time of the Apostles. The pope is not guaranteed infallibility regarding anything else, such as theological opinions, or personal beliefs, or the day-to-day judgments that he has to make as bishop of Rome and sovereign of the Vatican city-state.