Even if you've set a screen lock with credentials, your phone bypasses the security screen and immediately launches Camera. When you close Camera, that's when you'll be prompted to unlock the screen lock.