Check in the owners manual or at your dealership, but I'd bet this is an
air pump used during the initial few minutes after a cold start to
reduce emissions. I don't have such a late model-year BMW, but my 2003
has one (air pump) and it sounds just like what you are describing.
Motorsforum.com is a website by car enthusiasts for car enthusiasts. It is not affiliated with any of the car or spare part manufacturers or car dealers discussed here.
All logos and trade names are the property of their respective owners.