Neither, "preventative detention" means this is not a response to any specific action.
Unfortunately, it is cheaper for the gonvernment to detain people than to send police to prevent it shortly before it is going to happen.
Also, the ruling party in Bavaria is mainly controlled by the opinions people exchange in pubs over a couple of beers (one beer being a quarter gallon), and there common sense isn't considered that much.