What is the purpose of degassing coffee beans?

What is the purpose of degassing coffee beans?