How a Code of Ethics is Important to Project Management?

It isn't. No one in the project is going to act any different whether or not a code of ethics is there. It is a feel good thing imposed by the lawyers to ensure that they can blame someone else if there is a problem. Been doing project work for a quarter of a century and never signed a project level Code of Ethics. Company code as a condition of employment, yes, project, no.