Working environment is key to employee productivity and retention

Working environment is one of the most common causes of employee dissatisfaction. How does a working environment contribute to increased retention rates?