Replace your SD card. It has reached the end of its life.
When the card detects that it is wearing out it locks into a read-only mode to protect the existing data. Although it will accepts writes, they are not actually written, but will be cached so appear to have been successful. When the system is booted the cache contents are lost, so the changes will vanish.