The answer to 'how did bee get in my house' is bees can get into homes through small openings or cracks in the exterior, especially around windows, doors, or vents. Bees may be attracted to sweet smells or sources of water inside your home. Once inside, they can build a nest and become a nuisance or safety hazard.
To prevent bees from getting inside, it's important to seal any cracks or openings in your home's exterior with caulk or weather stripping. You should also remove any sources of food or water that may be attracting the bees. If you do have bees inside your home, it's best to call a professional pest control technician who can safely remove the nest and bees.