Many engineers are on their way out when they announce their departure. If they said: "hey, I'm thinking about joining this other company for a better compensation", that would be a topic of discussion. Most engineers instead tell me: "hey, I signed a contract with this other company. This is my last day".
The other point is that money is not the only motivator (esp. in our industry). People just like change, either more responsibility, or less responsibility, maybe more autonomy or more direction, maybe different leadership, etc.
Last, signing bonuses are quite large...