As technoguppy said, this is a battery tender plug. Somebody, either previous owner or the dealer, connected it. So now when or if you get a battery tender, you can just plug it to this.
Some have drilled a hole under the seat and wired this somewhere under the bike so you can plug the tender to it without removing the seat.