iOS will not fully charge your battery during the night - it will top off the battery just before you usually take it off the charger in the morning (it learns your usual schedule + it probably also makes sure the battery is ready based on your alarm settings).
This feature doesn’t help. The problem is that the phone is still using energy during the night, draining the battery by, for example 8-10%. Over several nights, this adds up to 1 cycle.
The fact that the OS waits to top up the battery just hides how much energy it used on background activity and notifications during the night.