Neither does it matter what is inside. The point being that you have to deduce the behaviour through interrogation (testing and observe the results).If it is a black box, then you can't know what is inside.
"Black box is a technical term for a device, circuit or a system that is observed in terms of its input, output or transfer characteristics without any knowledge of its internal workings. Black-box modelling usually refers to behavioural modelling of such devices, circuits or systems."
V. Ceperic and A. Baric, "A brief overview of the black-box behavioural modelling of electronic circuits for transient simulations," 2012 Proceedings of the 35th International Convention MIPRO, 2012, pp. 72-77.