Since gong’an challenged the student’s intellect (because of their nonsensical nature), they would make him doubt his normal reasoning ability.
This would help to undermine his sense of ego and confidence in his own intellect, thereby helping him to be open to directly comprehending reality without being impinged by his own thoughts.