The 39-year-old actor said the show's title was more about the crazy adventures and the lessons Ted had to learn before he met the mother of his children, said the Hollywood Reporter.
The series that ended on March 31 after completing nine seasons showed Ted finally getting back with friend Robin Scherbatsky.
"The surprise ending is in keeping with the DNA of the show as the past episodes lead you one way and then they pull you back," he said.
The award-winning actor believes that it is better to do something bold and daring that than try to have some homogenised, safe ending.