They were classified as plants in the traditional classification system.
This is due to the presence of cellulose-based cell walls in them.
Bacteria, like plants, can produce their own food through the Photosynthesis process, but not all Bacteria can do so, and they also have a cell wall like plant cells.
Bacteria are prokaryotic single-celled organisms, whereas plant cells are Eukaryotic, multicellular organisms.