If a player with a high-level force effect does a lot of damage to any mob, such as a Warden, then this damage will be counted in the statistics, but if you inflict the same damage to him but with the help of the /damage command, it will no longer be counted in the statistics. Steps to reproduce:
Switch to survival mode by running the command: /gamemode survival
Summon the Warden by executing the command: /summon minecraft:warden
Inflict fatal damage to him, the source of which will be you by executing the command: /damage @e[type=minecraft:warden,limit=1] 500 minecraft:player_attack by @s
Go to the statistics and note that in the “Damage Deal” column the value did not increase and remained the same, although you inflicted 500 damage units on the Warden, the source of which was you.
Thank you for helping us improve Minecraft! We saved your files: