Dino bling ping! Stego-fizzle fo' shizzle!
Just because you can't see a reason for them being there, doesn't mean there's not a reason. Like most body parts, things exist for protection....Seems like they would protect the body from a bigger predators bite.