@bell_is_sour
The 4/4/9 numbers that you are using to "add up" the macros are called the Atwater General Factor System, which is a simplification. In reality, not all protein is exactly 4 kcal per gram, not all carlos are exactly 4 kcal per gram, and not all fat is exactly 9 kcal per gram.