If you’re talking about ATF form 4473, it asks “have you ever been adjudicated as a mental detective, OR have you ever been committed to a mental institution”, not whether you have any mental health issues.
That form is also not a background check, that’s the NICS check, which is separate.
And that’s only at time of purchase, so I assume he bought the gun prior to being committed.