Apple Pencil is dead and is born again?

Something very strange happened and I try to understand the reason.

I've discovered that the Apple Pencil comes with a lightening connector. I had never used it and I tried to refill my Apple Pencil using the wall charger and Lightening connector.

After charging, I connected my Apple Pencil to my iPad and he was dead. My iPad (2018) even declined to observe that a pencil was connected. I've tried all things like restarting the iPad with a connected pen.

I tried to charge again, and nothing worked.

Then I connected the Apple Pencil to my son's iPad (10.5 pro) and he immediately asked me to pair him.

Then I connected the Apple Pencil to my iPad and he again asked to pair it and showed that it was 100% loaded.

So it's very fun and I try to understand what happened. Why was he dead when I connected to my iPad (several times with different intensities).

but worked immediately when connected to 10.5 pro, and then worked when connected to my iPad.