Our scales use the Bioelectrical impedance analysis (BIA) method. It sends a tiny current allowing us to measure your impedance which can then be used to calculate an estimate of total body water (TBW). Total body water (TBW) can be used to estimate your lean body mass. By subtracting your lean mass from your body weight it can also estimate your body fat.
https://support.withings.com/hc/en-us/sections/6216302087953-Wi-Fi-Body-Scale
https://support.withings.com/hc/en-us/sections/200347793-FAQ