After moving in
You can't know how many copies of the old keys exist. Rekeying or replacing gives you certainty.
After lost or stolen keys
If your keys are lost with anything showing your address, change or rekey the locks quickly.
After a break-in
Forced entry can weaken a lock or door frame even if it still seems to work. Have it inspected and replaced if needed.
When locks are worn
Stiff keys, loose handles or a lock that only works at a certain angle are signs it's wearing out.
After a relationship or tenancy ends
If someone who no longer lives with you still has a key, it's reasonable to change access.