Room [in-には] hardly people [subject-が] existed-not.
ほとんど人がいなかった uses ほとんど~ない ('hardly any') with 人 and the negative past of いる. Unlike the absolute 誰もいない ('nobody at all'), this softens the statement to 'hardly anyone' — leaving room for one or two stragglers.