Why would a guy be nervous around a woman he’s not attracted to?

Updates
12 d
He seems to be only nervous when he sees me or is around me. He was relaxed around his friend but when he saw me walk up to him and say hi, he started shaking and his voice went high pitched.
Why would a guy be nervous around a woman he’s not attracted to?
Post Opinion