That most likely indicates a repaired or refurbished iPhone, probably done by a third-party service provider. Just having an invalid date of purchase will not in and of itself affect how the iPhone operates. However, you have no idea what was done to the iPhone and whether in any repair genuine Apple parts were used, so its overall operation and long-term reliability is unknown. It's also unknown where Apple or an authorized Apple service center would work on it should repairs be needed.
Up to you whether to replace it. If it seems to be working, then unless there's some feature or capability in the iPhone 15 that you want or you want to get a new iPhone so you have a full Apple warranty and support, then replacing the iPhone 14 is probably unnecessary right now.
Regards.