how do i fix this ?
Robots.txt is a directive and it may not be supported or respected by search engines.
That very often happens also for Google Search, that respects more strictly the Robots Meta Directives noindex
Unfortunately checkout template customization is available only on Shopify Plus plans, therefore at the moment I don’t see any possibility to assure that checkout is not indexed in Google, on other Shopify plans.