As Tom noted in the comments, the question was previously closed as off-topic... Which is where the bug comes in. This is how the filter is applied for the reopen queue:
select PostId
from PostHistory
where PostHistoryTypeId = 10 -- closed
and Comment in @closeReasonFilter
That just checks that the question was closed for one of the reasons specified - it doesn't check that the question is currently closed for one of the reasons specified.
The fix here is probably to constrain those PostHistory entries to those matching the ClosedDate of the posts being reviewed.