This was a threat to hypocrites who would secretly gather to destroy Islam and uproot the Muslim community. So it was an issue of security. Hypocrites would try to skip Salat and then strategize to put an end to Islam, so the Prophet (s) warned them.