Whirlpool washer top load

My washer keeps draining water at the same time it is filling up. What can be the problem?:confused:

Often this is just that the drain hose is not high enough.
It must be at least 6 inches higher that the fill level in the washer.