Allah has granted human beings the capacity to choose between good and evil. The servant is commanded to adopt good and avoid evil.
Choosing righteous deeds constitutes obedience; deliberately choosing what Allah forbids constitutes disobedience. Accountability is connected to the servant’s decisions.
Possessing choice does not make a servant independent of Allah’s will.