Not just they did not know but Trump actively campaigned on no new wars and to try and end wars (ridiculously claiming russia-ukraine could be wrapped up with in his first day in office), but he broke all those promises.
And I know it would be naive to ever think such people would and really they say what they will to get elected. But if they simply lie about what they will do then it's not really the fault of the voters for voting them in, since he is not what they voted for.
I don't think things can get better until we stop blaming voters it does no good and keeps them unaccountable.