More details would be important; you don't say how many crabs you have, what size tank or depth of substrate, how large the crabs were when you got them, or anything about their previous existence. Not knowing any of this, here are some speculations:
1) If those two were the biggest, it generally takes crabs longer to molt as they get bigger/older. It is unfortunate that you disturbed them, as they may have been mid-molt. Hopefully they will complete whatever process they were in and be okay.
2) If they were all about the same size, those two may have been injured, or more damaged in some way from their previous traumatic experiences (just being abused into captivity, or if they were in not-so-good conditions before they got to you). They may therefore have needed more time to molt and heal from that previous damage, whereas the other crabs were not as damaged and therefore could go ahead with molts that were mostly focused on growth rather than healing from damage.
3) It may be that these two were just so damaged from their previous experience that they actually can't adjust to captivity at all, and may not make it.

Let's hope it isn't that.
4) It could be that you have too many crabs in too small a space, and they are intimidated to surface and interact, and/or don't feel safe to molt (too great a chance of cannibalization).
5) It's possible that they actually have been coming up at night, during times you aren't observing, and have not molted yet at all. This may be just because they haven't felt the need to, or may be because they are suppressing molting for some reason (don't feel safe? conditions not quite right for them?). If they have been suppressing molting, that could be dangerous for them. If they just haven't needed to, maybe they are just "slow" compared to the others? Or again, if they were larger than the others to begin with, they may just not have needed to yet.
6) Are they in painted shells? There have been cases where crabs in painted shells were stuck to the shells from paint inside the shell that wasn't fully dry before they were forced into the shell, and therefore unable to molt successfully. I'm sorry to say that, if that is the case, there is likely nothing to be done.
Those are just a few ideas. Likely providing safe (free from other crabs that might try to cannibalize them), dark places for them with proper conditions and some tiny food sources is all you can do--and wait. Crabs are, if nothing else, amazing teachers of the dying virtue of patience.
Best wishes; I hope they come through okay!