Should there be an edit button on comments?

I recently got promoted to member. I noticed that there is a edit icon next to other peoples comments. “This is strange”, I thought to myself. Today when I pressed this button, it opened up an area for me to edit this other persons comment (I cancelled of course). Is this a bug, or is this intentional? It seems like this should only be available to moderators.
Edit: I also realized that there is a delete button too!