A BIA device does not directly weigh fat, muscle and water separately. It measures electrical impedance: how body tissues resist and react to a very weak current. Because water with electrolytes conducts differently than fat tissue, the measured signal can be used to estimate body water and from that other parts of body composition.
The key point with InBody is that it is not the same type of output as a simple home scale. Professional devices use hand and foot electrodes, segmental measurement and multiple frequencies. The output is more detailed, but it remains an estimate based on impedance, body weight, height and other context.
More electrodes, frequencies and segmental modelling add information; they do not by themselves guarantee agreement with a reference four-compartment model for every individual. Accuracy depends on the device, population, algorithm and protocol.
That makes BIA very useful for practical tracking. It is strongest when you compare repeated measurements under similar conditions instead of treating one sheet as a final verdict.