@frnknstn Because, your homing config looks like a mix of endstop config and probe config depending on which file you look in. Also in config.g you have, as I see it, a lonely G31 down by the heater definitions.
So, it's better you take a grip on it and follow an example, like the one I linked, and go from that one.