Harry ultimately married Ginny Weasley instead of Hermione Granger primarily because J.K. Rowling, the author, intended to create a "Big and happy Weasley family" ending for the series.
The Author's Creative Vision
According to discussions about the pairing, the main reason Harry ended up with Ginny was rooted in the author's desire for a specific narrative conclusion.
J.K. Rowling's Intent
The provided reference explicitly states:
- "Because Rowling wanted to write her soppy “Big and happy Weasley family" ending." This is cited as the central reason behind the Harry/Ginny pairing.
- While Rowling mentioned Ron and Hermione's pairing was partly for "personal reasons not because of credibility," the reference suggests this authorial intent was even more significant for the Harry and Ginny relationship.
This perspective highlights that the relationship outcomes were, to a considerable extent, driven by the author's pre-existing vision for the overall story's conclusion and the desired familial structure within the wizarding world.
Rather than solely evolving organically from in-universe character dynamics, the choice for Harry to marry Ginny was a means to achieve this specific, large, happy Weasley family tableau.