Does School Ranking Matter for Masters
If you did well at a college ranked 25 in your subject matter, applied broadly for a Ph.D. (did you?) only to be rejected everywhere, then I’d start by looking into your application package and strategy first because that is a bit odd: are you sure your letters are good and from the right people, is your statement of purpose well-written and as tailored to where and for what you apply as it should be (have someone read it), etc, etc.
If your Ph.D. application was rejected because of a lack of relevant undergraduate research experience, then going for a masters first might help. Going to a lower-ranked place is not going to hurt you I think, but it’s not clear how much it is going to help you either.
However, as M.Sc. programs tend to be less selective than Ph.D. ones (because they usually help finance a university), to see you rejected again almost everywhere despite what you say are good credentials, there might be something off or at least sub-optimal with your application package (or you simply didn’t apply at enough colleges). You should go over it with someone experienced, like a mentor at your alma mater if you have one.