When I first heard this sung (as a young girl in Liverpool), the singer explained that Jack was a merchant seaman and John was from the Royal Navy- the bar staff ejecting the riff-raff when his money ran out, in favour of those with more money, or higher class.