The device doesn't go instantly in sleep mode when it is locked, it usually takes few minutes to reach that state because of background apps. And keeping the wifi on during sleep mode will keep your mobile awake and hence drain the battery. Check this guide (Android 101: Save battery by keeping...