You're quite right, learning the answers doesn't work for all exams, but there was a case of someone doing AGK who finished it in ten minutes and still passed. This is not what we are trying to achieve!
Still, EASA aren't the only ones - a couple of years ago, Transport Canada mistakenly issued performance questions A with performance graphs B, and everyone still passed. Go figure.