In hospital he brusquely refuses to turn to religion, swearing his atheism and humanism to a priest. He recovers but is now completely destitute.
The man in this passage is initially resistant to religion, even refusing to consider it while recovering from an illness. This resistance leads to him being left destitute after he leaves the hospital.