Why Does the IMF Care if Britain Leaves the EU?

The IMF is warning against a "Brexit." But what's the history behind the organization that has such an influence in world financial affairs?