Bailey pairs and quantum q-series identities. I. The classical identities | Synapse