2. He's worthy (In Thor, Odin's curse is "Whosoever holds this hammer, if he be worthy, shall possess the power of Thor", so anyone can hold the hammer as long as they're worthy) Film theory has a great video about who in the MCU may be worthy, but it has some big spoilers for other movies
1. He's a robot/cyborg/synthetic being dude, and not technically alive (seems a bit weak though because other robots can't lift the hammer)