

Spaces behave like this because markdown was designed to be like HTML but quicker to write and easier to read without formatting;
most web services that use markdown translate it to HTML rather than parsing it directly, and in HTML whitespaces are supposed to work like you demonstrated in your comment.
The reason for this behavior in HTML is “because someone in the 90s said so”, I’m afraid.






More like, no true scotsman