That thinking came later.
He made some mistakes. While clearly understanding that electricity is related to magnetism, he did not find evidence of electro-static repulsion. He also claimed that magnetic variation is constant, though a generation later, it was measured as variable. It is more important that he knew about variation, that the magnet aligns not quite true north-south, depending on the location on Earth.