Bob was Bruce's nickname. Bruce is a common first name, and Bob is a common nickname for Bruce. The nickname Bob is often used as a term of endearment or familiarity. It is also used as a way to shorten the name Bruce, which can be seen as more formal.
The Great Robert P. Bruce Quiz: 30 Questions to Test Your Prowess