Street Harassment: I was walking with…

I was walking with my cousin. And it was a pretty dark, but there were lots of street lights. A car stopped by us and at first they told us how we shouldn’t be walking. Then proceeded to throw stuff (eggs ?) and laugh at us. To let you know, we are just teenage kids who were minding our own business. We weren’t that scared to walk at that time because it’s our neighborhood where we’ve never had any problems though we’ve walked plenty of times. I was never really scared of walking alone but now I’m afraid.
We shouldn’t have to be scared to walk the street regardless of what time it it.
I don’t get how a stranger (there were 2 people) might feel the need to throw things at kids, minding their own business.