“You dont because the doctrine of papal infallibility only came about in the middle of the 19th century.”
Papal infallibility was openly debated already in the 13th century.
So what if it was debated?
It was established in the First Vatican Council of 18691870, (from the church that never changes and is the same one Jesus established. /s)