Попить пивка = to drink [a little quantity of] beer.
The same partitive genitive, we discussed many times before.