The evolution and origin of redundant genes remain unknown, largely because evolution happens over such a long period of time.
The backup hypothesis proposes that redundant genes remain in the genome as a sort of "back-up plan".