Maybe you didn’t study enough, maybe you studied the wrong information, or maybe you did everything right and the test covered things you shouldn't have been expected to know.
Tal vez no estudiaste lo suficiente, tal vez estudiaste información incorrecta o tal vez lo hiciste todo bien y el examen incluyó cosas que no esperabas que deberías saber.