https://www.nih.gov/news-events/news-releases/bacterial-pneumonia-caused-most-deaths-1918-influenza-pandemic
It has long been known that the vast majority of 1917 deaths were from pneumonia.
Penicillin was not discovered yet. It became available for use by the military in WWII, and subsequently made available to the general public.