XF removes any line breaks before storing profile posts (in XenForo_DataWriter_DiscussionMessage_ProfilePost::_messagePreSave()). The same is not true for profile post comments. I don't see how this could be intentional, plus it could potentially confuse users.