Because a student can write his code a small piece at a time, the feed- back appears as soon as one item is wrong.
In the standard learning situation a student only receives feedback after he codes the entire function- or set of functions- and tries to run it.