An ECG signal has DC baseline drift caused by muscles in the patient and mains hum interference picked up by the patient's body. Then most ECG circuits use the common-mode DC and AC interference signal produced by the instrumentation amplifier IC, invert it and feed it to the patient (usually to the right leg) to cancel the interference. Then a filter might not be needed or it can be simple.