It's possible you had two tabs open and typed on the wrong one but I have had similar problems even when I've only had one tab open. What can happen is if I type an answer in the answer box and then decide to delete it before I submit, the same answer automatically appears in the Answer Now box on the next question I open, and sometimes answers submit themselves without the Submit button being pressed