Starfleet was in need of a fighter craft that could run be rapidly launched to defend a stationary target, as well as run interstellar escort missions without requiring a full size starship.
Enter the Hawk class, which is a total modification of the Magpie class to make it a ship of war.