In Israel, all restaurants and all foods are kosher. In the US, in urban areas and areas with large Jewish populations, kosher restaurants are many. But in more rural areas, they can be nonexistent.
So people cook their own food all the time and they follow all of the rules that kosher chefs follow. It can be a challenge to get a hold of kosher ingredients in some places.