One possibility could be that they are being mind - controlled. Maybe an enemy has found a way to manipulate them into attacking their own village. They might be used as pawns to create chaos in Konoha.
Perhaps there is a powerful and dark force that has threatened the lives of their loved ones, like their children, if they don't attack Konoha. Naruto and Hinata are very family - oriented, and in order to protect their family, they might be forced to do something as drastic as attacking their own village. But they would surely be trying to find a way to expose the real threat and save Konoha at the same time.