The primary purpose of this is because it's illegal and people with security clearances could be blackmailed.
Same reason you can lose clearance for infidelity. Also same reasons that Obama and Hillary couldn't pass background checks to be their own body guards since both have deep associations with known terrorists.