> Because the opposite of black box is clear box
Not a native speaker (never heard "clear box" as terminus technicus), but a mathematician: If it is "the (only) opposite", the relation ist symmetric. So the opposite of "clear box" is "black box" again. Skipping the injective part, "black box" would be still one possible opposite.