$\newcommand{\scrF}{\mathscr{F}}$ I've been thinking about some of the topics I've learned in basic measure theory and I'm having a bit of a conceptual issue. We introduced first the notion of a $\sigma$-algebra so that if $X$ is a non-empty set and $\scrF$ is a $\sigma$-algebra defined on $X$ then the pair $(X,\scrF)$ is a measurable space. Then we studied measures for a while and measurable functions etc; where the measurability of some $f:X \rightarrow \mathbb{R}$ is intimately related to the measurable space $(X,\scrF)$ since a function is measurable only if preimages of Borel sets in $\mathbb{R}$ happen to live in $\scrF$.
I suppose I never thought to question this critically but why do we say that $(X,\scrF)$ constitutes a measurable space? What about the structure of a $\sigma$-algebra makes the subsets it contains measurable? A reason I ask is because I was reading this answer about the construction of measures from outer measures and I realized that I didn't really know what was nice about the sets in a $\sigma$-algebra. Why do they play so well with integration and measure theory, and why couldn't we have a theory of integration/measure without $\sigma$-algebras? Thanks in advance for the clarification.