Including grade histories occurs at the time of the backup. It is off by default but for some reason it triggers the gradebook architecture to get copied into the backup.
Gradebook
Copying Gradebook structure between courses
This discussion has been locked so you can no longer reply to it.