I wonder if Yayoi has been conditioned while in rehab they've clearly been drugging her from time to time
. Also she was practically the only barely sane person in that center.
It seems that Ginoza may have lied to her or kept her ignorant in the beginning about being able to return to normal life since it didn't dawn on her that she was serving a life sentence until Kogami's speech.