In all of the services I have attended, the genuinely pious would step forward as a reaffirmation of their declaration of faith. Most of the others stepped up while making sure everyone saw them do it so they could justify acting self righteous later. From my perspective, it's simply dogmatic reinforcement in a group setting.
"When fascism comes to America, it will be wrapped in the flag and carrying a cross." James Waterman Wise, Jr