In 1665, Hooke observed thin slices of cork under a microscope and noticed small, box-like compartments. He named these compartments "cells" because they reminded him of the small rooms in a monastery, which were called cells.
However, it's important to note that Hooke was looking at dead plant cells, and he did not realize the true significance of his discovery. It wasn't until much later, with the development of more powerful microscopes and the work of other scientists like Antonie van Leeuwenhoek, that the cell theory was fully developed, stating that all living organisms are made up of cells.