Most likely, the user ID that you provided doesn't comply with the user ID setup guidelines.
Hence, Clarity SDK sets the value you specified in the customUserID field and generates a random userID.
If you have provided a value for the CustomUserID, Clarity still generates a random value for userID and use the value you provided for customUserID.