This is because you have turned on iCloud Photo Library and chosen Optimize iPhone Storage. Then, smaller, space-saving photos and videos are stored on your iPhone while all the original and full-resolution versions are saved to iCloud.