Logical fallacy

Circumstantial ad hominem

Treats a speaker’s circumstances, affiliation, bias, or stake as by itself sufficient to reject their claim or reasoning.

An apartment key thrown down on a report about street-noise measurements

Examples

He rents an apartment, so his argument about street noise is false.
The speaker’s housing situation may explain their interest. It does not show an error in their reasons or evidence.
Her family owns a bicycle shop, so her traffic counts must be wrong, regardless of the independent records.
He rents out apartments, so his independently checkable arithmetic about vacancy rates is false.

A similar case that can be sound

The only evidence for the result is a seller’s uncorroborated testimony about their own product, so the buyer requests independent evidence.