They were “dragon’s teeth” to channel the ATATs into a kill box. It obviously worked because the Empire “island hopped”, bypassing Earth to invade Tatooine instead.
*sigh* Everything happens on Tatooine.