This is a common Nigerian Pidgin expression used to show surprise.
It’s like saying “That surprised me” or “I didn’t expect that.”
You’ll hear it when something unexpected happens.
Try it:
What’s something that would make you say “E shock me o”?
Drop your example in the comments.