Because it is the direct object of the verb lát and so it needs the accusative -t ending.
That is OK, and in a way it matches the meaning of the Hungarian sentence more accurately.
However, in English, the given solution "The police officer does not see a boy" sounds a little more normal to me. And it does convey the correct meaning as well. There written form is ambiguous, but when spoken the meaning would be clear.