I can speak for myself and say that a lot of times you just make mistakes! You're under pressure to get something done in a limited amount of time, and so you just dive in without really knowing what you're getting yourself into.
I had been practicing guitar about six months beforehand; I concentrated mostly on the songs I had to play. I got those down pretty well so they could use me actually playing.