Skin infections can arise from various causes, including bacteria, fungi, and viruses. When caused by bacteria, antibiotics are often prescribed to treat these infections effectively.