@marsxyz Without a CoC, some people will believe behavior X is okay and others will believe it isn't - creating conflict.
Without a CoC, people need to have trust in complete strangers to handle their case well, which isn't realistic and can lead to bad situations. For instance, some CoCs define that if you report harassment or violence, the alleged abuser will NOT be notified about this (or who made the complaint) unless the complaining party gives explicit permission.