It's a bar. They make money from drink sales. They hire bands to keep people there. They want people there till last call spending money. Seems straight forward enough. You play till the job's done. Usually, IME, that means till at least 30 minutes before last call when it is too late for anyone to reasonably jump ship to another bar.