Why did the duke of York get New York?

I have a meeting in new york or at New york