How is the calories meter on exercise bikes accurate - eviltoast

The bike knows my height and weight and that’s about it. From that it can calculate how my body burns calories?

Every body is very different, so I don’t see how any calculation can be accurate.