When the demons entered the pigs, there was a problem.
The pig's minds could not process the emotions of the demons. In a pigs brain, everything needs to make sense. The demons had a strong desire to go into the water because they don't breathe and the water is dark and out of sight from Jesus. A place to hide from him but the pigs didn't restrain themselves, they just ran and all drowned.
I was wondering if Jesus knew the pigs would panic and drown themselves when the demons entered them. Was he surprised? I don't know.
I was wondering what the story was trying to tell me. Is there a hidden message in there? I don't know.