paul when he was a beatles man

How the fuck the same man who wrote golden slumbers also wrote honey pie??????????????