A Computational Role for Arousal in Optimal Inference