According to the principle of purpose limitation (Art. 6 para. 3 FADP; Art. 5 para. 1 lit. b GDPR), data may not be collected without a purpose, i.e. «just in case».
Once the purpose has been communicated to the person concerned, it may not be changed without their consent or a corresponding legal basis. This means, in particular, that data may not be used for other purposes than those for which it was collected.
For example, a company that collects customer data to deliver an order may not simply use it later to train an AI system.
