This is a backdoor for their grove. It makes a ton of sense to have hard to defeat traps guarding it.
What does not make sense to me is why the goblins are there, seemingly invisible to the traps. If it affects the player (who is not part of the grove and therefore an intruder), it should be affecting the goblins too.