Amalek is the Jewish canon’s name for all of the people who attack the weak and unarmed. We are obliged not only to wipe out such people but even to erase their name, so the memory of them will be forgotten.
The duty to do that stems from the attack that the nation of Amalek carried out on the Jewish people when they were wandering in the desert. The bible teaches that Amalek attacked the weakest part of the children of Israel, the people who were at the back as they walked, who were weak and unable to defend themselves.
The Rabbis understood that this drive to attack the weak would be an ongoing problem. Boy, where they right — see October 7. That’s why the obligation to destroy them is also a continuing duty.
No doubt, this is why God commanded Israel, when they entered the Promised Land, to destroy all the inhabitants of the country.
But IIRC they didn’t destroy them all, hence the problems they and we have today.