Reiterating points made in the other good answers: first, we want to have a principle that is, approximately, $\lim_n \int f_n = \int \lim_n f_n$. An immediate issue is clarification of in what senses (plural!?!) we might take limits of functions. Pointwise? Uniformly pointwise? These seem only-slightly different, but, as we know by now, are wildly different in their effect. Uniform pointwise is too strong a constraint... we often simply don't have it. While uniform pointwise limits of nice (e.g., continuous) functions are again nice, that's not so strongly true for merely-pointwise limits. (Of course there is considerable landscape in-between.) A related issue is, then, that not-necessarily-uniform pointwise limits of continuous functions need not be continuous... to say the least. So, for the principle of interchanging limit and integral even to have sense, we have to have some compatible (not merely definitional) notion of integral for more general functions... which we want substantially to make sense of these interchange-of-limits theorems.
One side-effect conclusion is that we want descriptions of various classes of functions with metric or other topologies making them complete, in the first place, and then have "integrals" that are continuous linear functionals in that topology.
A meta-point that I find significant is that we really did have some issues needing resolution by extending notions of "integral". Not just trying to extend things for laughs or out of boredom.
E.g., although I was once charmed by the line of patter about integrating the characteristic function of the rationals, we surely can agree that this was not a burning issue needing resolution. It could be made into a more relevant form if we observe that that function is a pointwise limit of continuous functions!
(And, by the way, "the Riemann integral" slightly mis-represents the attitudes of people pre-1850, who knew quite well what they wanted, how to differentiate and integrate. It seems that in their context, the fundamental theorem of calculus, that the derivative of $\int_{x_o}^x f(t)\,dt$ is $f(x)$ for reasonable functions, was the decisive additional feature of integrals... beyond computing areas and such. In particular, they didn't have a "definition" of integral...)