I often try to write a past which matches their personality. For example, my character Nisra has an experimentive personality and lives alone. So I gave her a backstory as a scientist who was exiled by her king as a scapegoat.
Trauma can give it more weight, but is not necessary in most cases.