Most likely they just `assert` error conditions and let that blow up as error reporting, rather than write a full conditional and raise a custom exception.
I’ve been guilty of that in my own code when I just want to tell myself about an error.
With asserts enabled this is fine. With asserts disabled you might start sending nukes while the president is still outside or the doors to the bunker are still open.