Once you install Google XML Sitemaps plugin you may remove the existing robots.txt
file from the main WordPress folder.
This file will be created by Google XML Sitemaps plugin. This is the main trick.
Note you need also to register the sitemap via Google Search console.