One of protein main roles is to create energy. A protein is a chain of amino acids connected together.
Amino acids, i.e. the smaller units of protein, slow down the absorption of sugar in your blood, keeping you from crashing. Your protein bar is digested slowly, keeping you full for longer.