How did Gohan get his beast form?

After recently having watched the movie I’m left confused.

How is Gohan able to get such a strong new form without proper training and only being a bookworm?

I know he said he was training a bit on the side but.. how is he able to get a form that strong whilst Goku and Vegeta need to train with literally an Angel and a God.

Please help!