I'm thinking the epilogue is Rowling's way of preventing other authors from writing Harry Potter (or at least limiting it). Readers know he lives peacefully, marries Ginny, has three kids, etc. It limits what other authors can do. It's an alternative to killing Harry.