When you first visit the Wild Area, you'll only be able to find one-star Max Raids, but, as you defeat more gyms leaders, the higher ranking raid battles will become available to you. Finally, once you earn the eighth badge, you'll unlock the five-star Max Raids.