To uncover the mechanism behind dynamical quantum phase transitions (DQPTs), we employ initial-state engineering by tuning the effective inverse temperature β of the coherent Gibbs state in the one-dimensional XY model. We find that DQPTs arising from interphase quenches are topologically protected, originating from the topological mismatch between the initial state and the postquench Hamiltonian, whereas those triggered by intraphase quenches are topologically independent.