If I remember correctly, he was made as a companion for geriatric and disabled people. The enhancements were meant to allow him to discuss things and tend to their needs. Apparently the beings who made him didn’t realize how cranky raccoons are.
If I remember right, he was basically altered for the purpose of being law enforcement “Ranger” Rocket in order to help serve a lunatic asylum.