If my understanding is correct, enter by default starts a new paragraph (<p>…</p> in HTML). Holding shift makes it add a line break (<br> in HTML).
I think maybe Thunderbird has a plain text mode where this doesn’t happen, but it’s been a while since I last used it, so I could be completely wrong.