Your company doesn’t have a QA team?
So to some extent the dev got unlucky, his terrible code (that he didn't test) may have been caught through the normal QA process which the QA willfully lied about doing. But that doesn't absolve him for not testing (even basic testing) his own work.