It is. everything you do to an image in Lr is automatically written to the database and/or xmp file.
What makes you think this isn't happening?
The edits are saved to the catalog, not to the file itself - Lightroom never touches the original file. So if you open the file in another application, you won't see the edits.
If you export the file, the edits will be included in the exported file.