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
is there a way i can generate a random area around the center of my bed to home my z axis? thanks