When typing text, a hyphen sign is usually used in those places where the rules of the English language require a dash, the dash sign being absent on the keyboard. Therefore, the application automatically replaces the hyphen (-) with an en dash (–) if you enter text_Space_hyphen_Space_text_Space/Enter/Tab.
If you need to cancel this change, run the Undo command.