Computers need capacitors to store electrical energy. Capacitors are devices that can store and release electrical energy very quickly, making them ideal for use in electronic devices like computers. By using capacitors, computers can store the electrical energy they need to operate for short periods of time, allowing them to keep working even when there is a brief power outage.