Good Lord.
I remember a handout on electricity that one of my kids got back in the day; it said that generators are "giant machines" and that batteries are a kind of generator.
The teacher was apparently just making it up based on their own general vague knowledge, rather than like looking at wikipedia or even a real curriculum.
I absolutely love good teachers. Unfortunately the system doesn't select for good ones terribly well.