You need to plug the wires into the outlet to charge the battery. When the power goes off, the generator is attached to the wiring of the house so that the battery can be charged.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.