There are some more flat resistent tires, e.g. specialized armadillo, continental gatorskin or bontrager hard case. They all weigh a lot, ride like garden hoses and roll slow. The casing is thicker and they use kevlar and such to keep glass and nails from ripping the tire.
People get flat from riding underinflated tires, hitting holes and such, riding though debris, riding in the rain and riding worn tires, or just from dumb luck.
Anyone who rides a bike needs to change a tire when it goes flat. A tire takes about 5 minutes to change, it's just part of the sport.