the call to error() set that attribute for ajax validation too… so in the case that you want the ajax validation but don’t want the error message to display… there is that option.
It all depends on your needs… for example if in the case of an error you want the INPUT field to be marked with a red background but no error message… than you need to echo it…