Scientifically speaking, ostriches don't actually hide their heads in the sand. They do bury their eggs in the ground, so while tending to the eggs it appears that they are hiding their heads in the sand.
Also, while lions do prey on ostriches, ostrich kicks are dangerous and can debilitate...