It's a calculation based on your weight and height, which can be mildly accurate if you're not a very muscular person or you haven't lost a lot of lean mass from previous
dieting.
Scales use a weak electric signal but this method seems to be a novelty and wildly inaccurate.
You can be measured with skin calipers but, again, even this has a level of inaccuracy.