Metadata in md files

Is there a way for the created-at and updated-at metadata be saved inside the yaml section of a md file? I don’t get why metadata information is saved in a different file.