If you go into a pub here, you order beer*/lager/whatever by the pint (a proper pint, not the miserable little American one) or by the glass.
Here we have a pint and a glass. Yes, they’re both glass. Don’t think about it too much.
*Nobody actually says “beer”. You buy by brand.