It is because when you create a task it is not enabled just the task object gets added and it is in suspended state.
So in order to bring it in effect you have to enable it and that we do by using Alter command and set task to resume
ALTER TASK taskname RESUME;