It was named by Lieutenant James Cook on 21 August , 1770 , after Prince Edward , Duke of York and Albany . It was named by Lieutenant James Cook on 21 August 1770 in honor of Prince Edward , Duke of York and Albany , a brother of King George III of the United Kingdom , who had died three years earlier :