Admittedly I was a bit shocked to see my passwords start pumping out: all I needed to do was click "Allow" and away it went. Why would keychain remain unlocked? Why doesn't that command need sudo? This seems like a pretty decent security flaw to me...
You're telling your computer to save your passwords and give them back to you later. You shouldn't be surprised when it gives them back to you later.