It's genuinely just a very fancy church that somehow ended up with its own passport office.
Fun fact: Vatican City has the highest per-capita crime rate in the world, almost entirely from tourist pickpocketing.
You can drive across the whole thing in an hour, yet it runs better than countries fifty times bigger.
Fun fact: Its total land area has grown by roughly 25 percent since independence through ongoing coastal reclamation.