Ah, the Hero's Quest ... a formula that has worked for centuries.
Or, you could just glance at the following infographic. It highlights the similarities between Harry Potter and Star Wars pretty clearly.
Sometimes it is better not to analyze the trick and just enjoy the magic.
Other times, just let Saturday Night Live do a parody of it.