Region locks are used to prevent you from playing games from other territories.  PS5 does have region locks in Bluray. Ultra HD Blu-ray discs are region-free; that is why they can be played on your PS5.