The opening is called a gambit because White sacrifices a pawn. In exchange for the pawn, White gets better development and opens up lines that can be used to attack/checkmate the black king. It was more popular in the 1800s, when many Black players did not know good ways to play against it.