The primary function of chromaffin cells is to secrete catecholamines into the bloodstream in response to stress. These hormones prepare the body for a "fight or flight" response by increasing heart rate, blood pressure, and blood glucose levels. This rapid response helps the body to cope with immediate physical demands.