Just to expand on this.
- Dubs are trying to make the audio align with the scene and mouthing of the actors. So youll get a lot of adjustments focusing on pacing.
- Subs are trying to capture the meaning of the original audio as closely as they can (while making it readable).
Because of this subtitles and dubs don’t usually align perfectly and will have somewhat conflicting content.