The fight was in his hometown with an American ref and American judges. It should be no surprise that Mayweather got the decision. If the fight was in Pac's hometown with a Filipino ref and Filipino judges, I guarantee Pac would have won.
And if the fight was in a neutral location with neutral judges and a neutral ref Mayweather would have won 116-112 or 117-111 on all 3 cards.