The only connection I can make after reading Robbie's Wikipedia entry is that Robert the Bruce spent some time in a cave after a few defeats only to emerge and defeat the English on the third attempt.
Edit: The article is apparently correct re: the origin of Burce Wayne's name.
Always thought of him as the spider guy.