A retired number means that a player that wore a number was very good and good enough to get the number retired which means that that number will never be able to be worn again on that team. Some teams retired the same number because a player can be traded to a different. For example Greg Maddux was retired by the Chicago Cubs and the Atlanta Braves.
Here is a list of all the teams and there retired numbers: