When a legendary musical duo attended a party, a casual moment of late-night boredom accidentally created the foundation for one of their most enduring chart-topping tracks.