Your searches and browsing activity are saved in your Web & App Activity when it's turned on and you're signed in to your Google Account. This gives you things like better results and recommendations across Google's products.
You're in control of what's stored, and you can delete your past searches and browsing activity or turn off Web & App activity at any time.