After locking door with Remote. I loose memory,for seat and mirror. on 2003 Buick Park Avenue

Tryiny to find out why ,everytime I use the remote to lock the doors or the door lock when the ignition is off ...I loose memory on the seat and the mirrors....Why..

2 answers
have codes scanned and see if body control module is responding to other modules
Scan for BCM codes