why can't we tickle ourselves yet we can masturbate

so we can't tickle ourselves because our body somehow knows it's our hand yet we can jerk off

don't the body realise that masterbating isn't reproduction and simply semen is being wasted