Default [Q] Missing photo from camera

Running KitKat 4.4.4.

I took a photo last night using the camera from the lock screen. Hours later, i checked my phone for that photo. I looked for it in the Photos app and it was not there, device nor cloud backup.

This morning i turned on my phone and i got the notification that a photo has been backed up onto the cloud. I opened up the Photos app and now it shows the photo i took last night on my device gallery.

Why did it not show up on my device when i first took it?
Nexus 5