Probably because you sent a document which contains a field fieldA which was not part of your mapping so elasticsearch tried to guess automatically which ended up with the 2 fields.
You can reject such documents by using a strict mapping if you wish.
More information at https://www.elastic.co/guide/en/elasticsearch/reference/current/dynamic.html