It was to create diversions for landing forces further north.
THE Turks
The Battle Of Saratoga was first, the Battle of Yorktown was much later.