The reason is exaclty as Phaerdrux explained. I am using a piezo on the nozzle to home my Z axis.
Thanks for the quick answers guys