Indeed. There are a few hypotheses about it [1]
The thing that makes this more interesting is that if you have a large shower (eg a wheelchair wetroom) then the shower curtain behaves differently depending on where you are inside it. Try walking up and down your bathtub next time you have a shower.