Why isn't ei bok also correct?
It is, but it's less common than 'en bok', and there shouldn't be too many 'best solutions'.
But it is correct and hence accepted, right?
It is both correct and accepted.
"Et bok" was marked as incorrect. Why?
Because it means "the book"