The oil filter housing is pretty self explanitory; It holds the oil filter assembly. Not only does this provide a small amount of cooling but it makes the filter much easier to service.
BMW uses a lot of plastic in their engine components to save weight and money. Unfortunately, plastic is damaged easily and the factory oil filter cap needs a special tool to remove.