As mentioned before, last year BMW had a software glitch in their security systems.
The thieves gained access by exploiting this glitch which exploited remote unlocking of the car for emergency reasons and then resetting the alert and driving away with a master coded key.
BMW fixed this glitch with a software update