The opening is a race to get all your pieces out. If you do this job better than your opponent, you will have more pieces to attack with, and you could checkmate your opponent.
How much is it worth to get ahead in development?
A gambit is an opening idea where one side says: I will give you a pawn if you let me have a free move!