I can only guess this happened.
If someone tries to hack into your Apple account, entering your password incorrectly too many times, or giving the wrong answers to your security questions, Apple will recognise the attack and will lock your Apple ID.