When you deleted every letter of some italic text and typed on, the new text was italic too. What you type next now looks like the text beside it.
The same applies to bold, underline, strikethrough, highlight, inline code and links, in Documents, Proposals, Notes, Books and the website builder.