Why is the pope heading to San Marino?

Why is San Marino even a country?