The statement that Prophets pray indicates that their life in barzakh is not understood as the mere survival of a name or memory. Prayer points to a distinct form of living worship.
Worldly prayer carries legal duties, whereas the mention of prayer in barzakh indicates a state of honor and blessing. The two should not be equated in every detail of form or legal ruling.