The answer to 'how did wasp get in my house' is that wasps can enter your home through cracks, gaps, or open windows and doors. Wasps are attracted to food sources, nesting areas, and warm shelter, which can lead them to find ways inside your home.
Some common reasons wasps may get into your house include: searching for food scraps or spills, looking for a place to build a nest, or accidentally flying in through an open door or window. Wasps can squeeze through very small openings, so even a tiny crack or gap in your home's exterior can provide access.