Except it’s not encroachment until their actions actually matter; much like how with offsides you can stand offsides all day if you want, it’s not until you touch the ball that a call is made. If the keeper had stepped off her line and the shot went in, chances are good nothing would have been done.