The main function of the reactor chamber is to isolate the reaction from the general environment. The chamber must contain the extreme heat and radioactivity generated by reaction and maintain the vacuum necessary for the reactor to operate.
The choice of primary power source was one of the first technology hurdles that the vessel construction program had to overcome. The power requirements of the main engines and superluminal drive required a significant energy source that also did not have prohibitive mass...