In building up the theory of Lebesgue integration, at some point in the exposition we get something like:
For a non-negative measurable function $f$, the integral is defined as:
$$\int_E f \, d\mu = \sup\left\{\,\int_E s\, d\mu : 0 \le s \le f,\ s\ \text{simple}\,\right\}.$$
Now the fact that $f$ is measurable is usually made as an assumption, from the expositions that I have seen. However, I don't see why $f$ needs to be measurable. The set is well-defined and non-empty for any non-negative function, why is $f$ assumed to be measurable? Seems extraneous.