Why the filter is already applied

Reference:

Something like this scenario will happen.
This reference for doctype script, not for the listview.