Why does giraffes have long tongue?

So that it can reach leaves behind the protection of long acacia thorns.