While Mini is a subsidiary of BMW, they don't just slap a BMW engine into the Mini Cooper. They specifically design and engineer engines tailored for the Mini Cooper, taking into account the car's size, weight, and performance goals.
So, while the engines are ultimately from BMW, they are unique to the Mini Cooper and are not just standard BMW engines.