Why would penicillin NOT work on fungi?
Penicillin acts on the cell wall of bacteria. Fungi do not contain the same constituents for targeting in their cell wall.
More specifically, bacteria contain transpeptidase which is used in cell wall synthesis. Transpeptidase accepts penicillin by binding with it, thereby rendering it inactive, preventing transpeptidase from creating cross linking in the cell wall.