Is there any reason for the nested filters to be applied on the first case and not in the second one?

Is there any reason for the nested filters to be applied on the first case and not in the second one?