The GIF filter doesn't give as many quality results as appending the query with the keyword "GIF", since the former method doesn't attempt to retrieve results from GIF repository websites.
Google actually behaves the same way, with appending the query with "GIF" providing much better results than using the filter in the toolbar. However, with the appended query, Google seems to sort results better than Kagi, with the most popular GIFs appearing first.
Here are some query examples with "Harry Potter":
Using the GIF filter should ideally provide results that are the same quality as when appending the query, and ideally, as well sorted as on Google. This could be done by initiating a new search in the background when using the filter, with the query appended or something like that, without necessarily making it visible to the user.