Hops, used in beer is a natural preservative.
"Hops, one of the main ingredients of beer, are a natural preservative"
https://gourmandandgourmet.com.au/eight-things-every-beer-lover-should-know-but-doesnt/#:~:text=Hops%2C one of the main,and James Boag's preservative free.