A filter like its name indicates, is used to filter out certain frequencies. A Low-Pass Filter (LPF) filters out high frequencies and allows the lower ones to pass through.
There are other types of filters too such as High-Pass Filters and Band-Pass Filters (allow a range/band of frequencies to pass through).