Hi,
Model# would be more useful so how the washer was designed would be known.
Certainly -sounds- like a possible install issue. A copy:
Q - My washer seems to keep filling with water, the water keeps coming in the washer and going out the drain without the washer motor running.
A - This often is a drain hose that is too low or a drain hose that has been pushed too far down inside the stand pipe....the water is actually siphoning out of the washer. Do not "seal" the drain hose to the house plumbing pipe, this will also allow the water to be siphoned out.
jeff. Appliance Repair Aid