7805 capacitor question (again)

The output 0.1uF capacitor is required. It should be ceramic (disc or MLCC).

BTW what is the purpose of 0.1uF electrolytic capacitors? They seem useless to me.