When passing UTM parameters, GCLID, and other parameters to your website it stores this info via a browser cookie for 30 days.
It can then be inserted into any lead generation form on your website. It automatically adds this extra information as hidden fields on your HTML form.