Age, sex, size and weight are needed to accurately count calories. Now, whether you should sacrifice your private data for some slight extra accuracy in counting calories, thst another story.
To be clear, they're needed to accurately count calories out. You can count calories in perfectly accurately without them.
Heart rate levels during exercise also depend on age and sex (among other things). This is how you can get heart rate zones to know how intense your exercise is.