If you turn on "Optimize iPhone Storage", this gives the phone permission to substitute lower-quality, space-saving versions of photos and videos for full-size ones.
Note that there is no manual control over this feature.
- The phone – not you – decides which photos get the "lower-quality, space-saving" treatment, and which don't.
- The phone – not you – decides when local storage is getting low enough that it ought to give some more photos the "lower-quality, space-saving" treatment.
- The phone – not you – decides when there is enough local storage that it can quietly undo that treatment, and store full-size versions in local storage, once again.
- Even if the phone gives all of your photos the "space-saving" treatment, it will keep local versions of all of them. iCloud Photos is a syncing service, not an archival one.
If your phone's local storage is not full, or nearly so, it is quite possible that the phone has decided that for now, it does not need to give any photos the "space-saving" treatment.