While it is true that "a 40" means any beer in a 40 oz. container, such beers are commonly malt liquors, which is a beer with a higher-than-normal (in the U.S.) alcohol content. Beer like this is commonly not of high quality, and cheaper (per oz) than regular beer.