Dumbledore also knew about the prophecy that Professor Trelawney foretold long before Harry ever came to Hogwarts. He knew that in order to kill Voldemort, Harry likely had to die as well.
Dumbledore admired Harry's ability to love and "pure" heart, which enabled him to defeat Voldemort. After the Battle of Hogwarts, Harry became an Auror, possibly having a flourishing career ...