A ‘core’ file is a file saved by a program that stopped unexpectedly, due to a programming error. It is generally used for debugging.
If it appeared in your config directory, it was most likely started by a program that was started from that directory, such as an editor.
You can sometimes tell which program created the core file by doing
$ file core