Praying TO the dead or praying FOR the dead? Two very different issues.
Anyway, in Protestant churches might be an alien concept but in Orthodox and Catholic Churches it is a very important practice.
The departed remain alive in Christ and can intercede for the living.