Two musical passages can be harmonically very similar, even if they don't have the same tune or the same chords.
In this song, listen to the part beginning "All the people..."
I'm referring not to the "piccolo trumpet" (which is like the one in "Penny Lane") but to the chords being played and sung.
Does it remind you of a certain OTHER Beatles song?
The 1910 Fruitgum Company: "Poor Old Mr. Jensen"