A bit longer: OP went to a shop to get his phone repaired. Shop gave him a loaner phone, which had been used by many many people and apparently never wiped. OP set up Google backup on that phone and those photos got uploaded onto his WhatsApp backup. OP got a new phone, set up WhatsApp, and WhatsApp downloaded the pics from the loaner phone onto his.
TL;DR: he's an idiot.
A bit longer: OP went to a shop to get his phone repaired. Shop gave him a loaner phone, which had been used by many many people and apparently never wiped. OP set up Google backup on that phone and those photos got uploaded onto his WhatsApp backup. OP got a new phone, set up WhatsApp, and WhatsApp downloaded the pics from the loaner phone onto his.