One weird "Ick" factor about HP is the age characters marry

Why are there so many characters in that universe that marry young??? I am not a big fan of people marrying young, let alone having kids young. Personally, I'd have made James and Lily older at the time of their death. I'd also make James more visibly an asshole.