It was added for civilians as they can kill eachother, and would be shooting people who just lost their spawn protection. Other classes don't have this problem, so they don't have that kind of spawn protection. Also, I think it's important to keep it, as Saurabh mentioned, people won't be camping right outside the spawn as the other team could just shoot them.