Weird gas pedal question

In the manual it is called a "anti rattle spring", Im not sure why it is there.