I don't know why it happens, but it seems to be "all the time" sometimes. Like if I lock the computer. I've grown a habit of peeking near the clock for the language and resigned myself to hit Alt+Shift whenever it's the wrong one.
indeed this thing started with windoze8.