This is intensional because the assumption is that when newlines are present, you may write quite a bit of text and it will be easier to read when it is written out as text data rather than as a value of an attribute, where newlines would need to be escaped.
The TMX Map Format documentation does make a note of this.