Why ajax doesn’t work on certain wordpress hooks?

Why ajax doesn’t work on certain wordpress hooks?