I don't know what your book says, but if it claims that 'It happens that you can suddenly do something that you can't' is good English, then it is misleading you.
Having said that, I have to admit that I can imagine native speakers saying it in informal conversation. It makes no sense logically, but we don't always think of logic when we are chatting with friends.