How it comes I was able to edit someone else question?

Saw a question and noticed it could use some formatting on code, clicked on 'edit' and did the work. Then it occurred to me that I don't have rep enough for this. Checked the reputation list and indeed I would need 2k rep for editing rights.

So is it bugged or did I misunderstand this rules?