User blog comment:The Milkman/What I learned from Skyrim/@comment-3981209-20111211194910

No, opening the gate was to help the guy who killed the king, and therefore an act of treason ... and they just assumed you were with the Stormcloaks rather than bothering to listen to your sob stories

Also, the guards in Riverwood have a camp of bedrolls just outside the town