How valuable you consider \(f\) to be in state \(\omega\) depends on how big \(f(\omega)\) is. How important the goodness of \(f\) in \(\omega\) is depends on how likely the state is, measured by \(p(\omega)\). The expectation is then the sum of these probability-weighted values. See Briggs (2014) for more discussion of expected utility.