Filter means to remove, not to add. Like `filter()` in Python or Swift being given a condition and a list and returning everything that meets the condition.
Someone else mentioned lens filters as a possible source for the term but I'm pretty sure the signal processing term is at least partially responsible for the current usage.