I have a feeling you are missing a very important thing. Every text editor uses some internal format to keep track of the way your document is formatted. Just because it is hidden doesn't mean it doesn't exist - and when you think about its function it is just another markup language. Hidden, but it is there - so the answer to your question is "we need them, because without them we can't format documents".
Sure, if you think about markup languages in terms of following XML ideas and specifications, you can argue that things like RTF or TeX are not markup languages - but in the general scheme of things they are.