why were the cells remained undiscovered for a long time
Cells are microscopic structures which cannot be seen with naked eye. Cells can be seen with the help of microscope. Hence, only after the invention of microscope, the cells and their structure was elucidated.