Often it looks like the requirements have changed, but when you look closer, that’s rarely the case. Instead, what really happened is that you learned more about what the requirements always were.
The primary job of an engineer is to balance competing constraints to provide value. This is done via a deep understanding of the problem space, the available tools, materials, technologies, and processes, and the requirements. That’s what engineering is.