This is because even with the raising of the negation to the matrix clause, both sentences convey the same meaning, thus the matrix clause negation is to be interpreted as if it were within the embedded clause.