From what I read, the Beatles had to stay on stage and perform for hours in Hamburg - something they really weren't ready for - and they didn't have the repertoire to play for so long, so they basically recycled anything they could - including odd bits like the Sheik or Besame Mucho...
Also, McCartney always had a strong penchant for old musicals and all that stuff.