Why is working memory related to fluid intelligence?

Why is working memory related to fluid intelligence?