A filament is needed in a Cathode Ray Oscilloscope (CRO) to emit electrons in the cathode-ray tube. The electrons are accelerated towards the screen to create the electron beam, which is then deflected to produce the display. The filament heats up and emits electrons through thermionic emission, contributing to the functioning of the CRO.