If you create a task, the buttons appear as expected: Cancel - Create Task.
At the end of the comments you get: Close Task - Submit
It is not uncommon to see new users (and not so new) resolving tasks accidentally because they click the "Close Task" button at the end of the comments. Usually what happens is that they are half way in a comment, think it twice and want to click "Cancel".
Arguably, "Close Task" is not an action that requires such a prominent shortcut right next to a very common action such as submitting a comment. Even from the possibilities for resolving, "Close Task" will pick only "Resolved", which makes the correct use case even less frequent. The dropdown menu already has an option to resolve tasks quickly.