Actually, the Athletic article says that the Lichtenstein game that they won was a friendly.
"Since its first official football matches in 1990, San Marino have won precisely one football match — in a friendly against, yes, Liechtenstein at home in 2004. They have managed nine draws, including against the likes of St Lucia and Gibraltar. And they have lost 196 times."