I don't have cats, but I can explain why some cats chew electric cords.
Possible Reasons
Chewing is a natural exploratory behavior. Boredom, lack of stimulation, appealing texture or taste of cord coating, nutritional deficiencies, or dental issues can all contribute.
Why It's Dangerous
Chewing electric cords can cause electrocution, burns, or death.
Prevention
Provide chew toys, keep cords out of reach or covered, use deterrent sprays, and offer catnip toys. If you suspect boredom or dental problems, consult your veterinarian. If you catch your cat chewing a cord, remove them and the cord immediately.