Gas leaks can occur in homes due to various factors, including faulty appliances, aging gas lines, or improper installation. Regular maintenance and vigilance can help prevent gas leaks.