Can someone educate me about something please?

On the passenger side of this engine there is an aluminum canister with a breather on it. It has hoses plumbed to it from the front and rear of the valve cover. It seems to be there to collect oil, but why?

Thanks:
Paul...aka Xerxes