It is, but in practice it doesn't matter too much. In most (all?) jurisdictions in the US, bars can be fined pretty heavily or even lose their liquor license if they're caught serving people illegally, or if they even have people on the premises without their ID with them. Any extra revenue they might generate from letting in underage people isn't worth the risk of the consequences if caught.