This is a play on words. A "bar" is a drinking establishment where musicians or performers sometimes play. However, a "bar" is also a segment of time corresponding to a specific number of beats in music.
Piano players know what bar they are in .