A robots.txt file goes on your website’s server and grants search engine robots permission to get to parts of your website. I’m not sure Google’s going to change your rankings based on having this or not but it’s easy to setup and having a robots.txt file is considered good practice for SEO.