Hello Fabian_Vazquez,
The additional details below may help with the Optimized Battery Charging feature:
Optimized charging is designed to engage only in locations where you spend the most time, such as your home and place of work. The feature doesn't engage when your usage habits are more variable, such as when you travel. Because of this, some location settings must be enabled for Optimized Battery Charging to activate.* None of the location information used for this feature is sent to Apple.
Follow these steps:
• Go to Settings > Privacy & Security > Location Services and turn on Location Services.
• Go to Settings > Privacy & Security > Location Services > System Services and turn on System Customization.
• Go to Settings > Privacy & Security > Location Services > System Services > Significant Locations and turn on Significant Locations.
* Optimized Battery Charging needs at least 14 days to learn your charging habits, so it won't engage before then. Also, your iPhone needs to experience at least 9 charges of 5 hours or more in a given location for Optimized Battery Charging to engage.
You can also find that information in this resource: About Optimized Battery Charging on your iPhone - Apple Support
Should that still persist, you'll want to reach out to Apple Support: Apple Support They'll be in the best position to look into this further.
Take care.