Srimad Bhagavatam Canto 10, Chapter 29, Text 16

SB 10.29.16

na caivam vismayah karyo
 bhavata bhagavaty aje
yogesvaresvare krsne
 yata etad vimucyate
You should not be so astonished by Krsna, the unborn master of all masters of mystic power, the Supreme Personality of Godhead. After all, it is the Lord who liberates this world.
Pariksit Maharaja should not have been so astonished that Lord Krsna’s so-called romantic affairs are in fact meant to liberate the entire universe. After all, that is the Lord’s purpose — to bring all conditioned souls back home, back to Godhead, for an eternal life of bliss and knowledge. The Lord’s conjugal affairs with the gopis fit in very nicely with that program because we who are actually lusty in material consciousness can be purified and liberated by hearing of them.
In the First Canto of Srimad-Bhagavatam (1.5.33), Narada Muni states:
amayo yas ca bhutanam
 jayate yena su-vrata
tad eva hy amayam dravyam
 na punati cikitsitam
“O good soul, does not a thing applied therapeutically cure a disease that was caused by that very same thing?” Thus Krsna’s romantic affairs, being pure, spiritual activities, will cure those who hear about them of the disease of material lust.
Srimad Bhagavatam Canto 10, Chapter 29, Text 15
Srimad Bhagavatam Canto 10, Chapter 29, Text 17