On the Independence Assumption in Neurosymbolic Learning