I think he already knows, and he was also close with the father so the father must have mention that he only has a daughter. I think the ML figured it out as soon as they started their agreement and he's playing along because he really likes her personality.
Ayo someone knows if he knows that she is a girl ??