ummm when you set a keyframe and then save your file, your keyframes are preserved inside the maya file (.mb or .ma). animations are usually either made by creating expressions to drive variables attached to values, or by creating keyframes that do the same thing, but you set them manually.