Which is why it makes more sense for \r\n to be the *nix line ending - because there is a distinct "carriage return (on same line)" from "line feed (at same carriage position)" operations possible, and combining them together makes carriage return and line feed to put the cursor at the start of a new line.
And why it makes more sense for \n to be the common Windows line ending because it doesn't have that TTY ancestry.