During the reign of Liu Bang, Lv Hou was not as cruel and heartless as he was later. On the contrary, he mastered his own power in some aspects and developed his own contacts. Liu Bang didn't kill Lv Hou because Lv Hou was a small threat to Liu Bang. At least at that time, Liu Bang didn't think Lv Hou was a threat. Maybe sometimes he felt that Lv Hou's actions were inappropriate, but after all, his wife was one of our own.
Liu Bang knows how to command people, but any emperor who knows how to command people is indifferent. His wife is one of our own, and the minister may not be. The minister is just a person who accompanied them to the farmland. Perhaps for a person like Liu Bang, there is no friendship between the monarch and the minister in his heart, and the most is his own rights. When he is old, of course, he will choose an heir, but for him, the heir must be one of his own, and so is everything else.
Of course, Liu Bang didn't expect Lv Hou to kill his own children after his death, because there was a famous saying at that time, marry a chicken and follow a dog. Obviously, it wasn't emperors. She really wanted to overthrow the dynasty established by Liu Bang and create the Lushi dynasty. Liu Bang may not trust Lv Hou, but he would never say that Lv Hou was killed easily, and Lv Hou's terminating was only shown after Liu Bang's death.