To what extent was the institution of “Residential Schools” motivated by economic and/or social forces?

To what extent was the institution of “Residential Schools” motivated by economic and/or social forces?