How can weighing occur although Allah gains no new information from it?

The Weighing, the Record, and the Questioning on Judgment Day