When a servant chooses a path of obedience or sin through available means, that choice is genuinely attributed to the servant. Consequently, reward and punishment are connected with the person's deeds.
Question: If every good act needs Allah's enabling, why is a person accountable in the Hereafter?
Answer: Choosing the means and forming the intention belong to human acquisition. The action created by Allah is attributed to the person through that intention and choice. Predestination cannot be used to excuse deliberate wrongdoing.