Answer:
Part A: They didn't really keep him like a wild animal. It's a way of saying someone was treat a bad manner because nobody wants to be treated like they're a wild animal. I believe the figurative language type used is: simile.
Part B: It shows the audience how badly he was treated.
Step-by-step explanation:
I hope this helps! :D