When the parks stay open until 10pm, that's when they have fireworks and expect the most crowds.
This has a good and bad side. The bad is the parks are crowded. The good is that you can show up early, tour a park, leave, then come back at night as the tired are leaving.
When the park closes earlier, they expect lighter crowds.