Just found this on another Thread on this forum:
"It's a relatively new thing, only available with phones preloaded with iOS 12 or newer."
So as i understand, iPhones including Xs and after should all have a "last charge" date right out of the box.
Perhaps the manufacturing date of the device.