Barabbas was just the sort of man the Romans ought to be worried about. He'd been involved in an actual insurrection. He was guilty.
And here is Jesus, the innocent one, convicted in his place. Jesus is the substitute that allows Barabbas to go free. Pilate didn't understand why the people wanted Jesus to be crucified, but he gave in to the will of the people.
The Good News of the Gospel isn't that humanity figures out a way to live properly. It's that Jesus stands in our place and sets us free. Barabbas didn't figure out how to free himself or come up with a plan to live a perfect life. He obtained his freedom because Jesus was willing to be condemned. The same is true for us -- God doesn't sit in the heavens waiting for us to solve our own problems. God enters into our humanity and liberates us from sin and death through the love, grace, and mercy of Christ. We have hope because of who Christ is and what he has done.