Could one say this sentence without "to"?
yes, but it changes the meaning,
to była lekcje - that lesson was a lesson about
była lekcja - a lesson took place
Or the former would be "it was," as it wants here, I guess, and the latter could be "there was"?
I thought so, but was not sure so went with more descriptive explanation.