As with everything in Buddhism, it's important to double check the philology on this (if anyone has done that specific work yet) because as with many other things a lot of it was added later for various reasons. Not wise to assume we're talking about the historical Buddha here rather than the character Buddha without verifying that.