I think the fact that people were expecting and looking forward to a happy ending was actually something that pulled people in. It's strange how a known ending (well, now we know it was NOT known) managed to be pulled off so successfully.
I feel like it learned to appeal to young adults well, they saw themselves in the characters sort of like in New Girl but Queen Zooey>>>the girl who used the flute in a camp in American Pie tbh