Some people like to write how they want their post to read. Writing 'yes' might not sound like you would say it and therefore come across as overly formal. If you would say 'yep', then that's why you would write it.