Why does River Song not remember who shot the doctor at the lake in Utah?

The doctor specifically tells her “you won’t remember doing this”. But WHY?? Why would she not remember being forced to murder someone, especially him? I have never understood this, and upon rewatching for the millionth time, it’s driving me insane again. Why??