The claim is not that popes are without sin, but that they are infallible in theology and positions of the church. (I’m no expert, so that is a rough description.)
One that gets trotted out every time an EVIL in the 'church' (happy, RC?) is exposed.