Why did Jibreel say “read” if Muhammad PBUH was illiterate?

Wouldn’t the angel Gabriel have known that the Prophet PBUH was illiterate or did he not know that?