The eight frames are almost certainly fine. They were exposed normally and the film has just been wound back into the canister, which is what happens at the end of any roll. Get it developed and tell the lab it rewound early so a mostly blank roll does not surprise them. Do not reload it and shoot again unless you know how to handle a partial roll, or you get double exposures and light leaks.
As for why: most motorised cameras do not count to 36 and stop. They detect the end by tension, so anything that makes the film resist reads as end of roll.