Instagram remembers your searches because it wants to show you relevant content that you might be interested in. It also helps to speed up the process of finding what you're looking for, since Instagram can show you results based on your past searches.