The first form of cookies were made in Persia during the 7th century. Ice cream is just as old however, the flavors you are talking about are new inventions that came around during the 40s. Cookies are always fun and easy to make, you can have great time with your family baking cookies. You can also win over that girl/boy you've been courting with some nice sugar cookies. Can you do that with Ice Cream? I don't think so. If you bring a girl/boy homemade icecream it just wont be as romantic. Cookies can also be eaten all year round, for people who live in colder climates Ice Cream is not the food of choice. No body eats Ice Cream during the winter (Although some people do, its not very popular). Also People in Antarctica would not eat Ice Cream because it is too cold however they would eat cookies.
Summary of points: Cookies can be eaten all year round and in cold countries, they can also help you build relationships, by baking cookies with your friends/ family. Cookies are romantic and unlike IceCream they can get the Girl/Boy your trying to get with.