Most cassettes are steel. Expensive ones do have ti cogs, and aluminum ones exist, but steel accounts for nearly every one.
chainrings are so large that aluminum lasts quite a while. Steel chainrings would last longer, but its hard to find one that is machined for shifting as well as an aluminum ring. Not worth the trade off in my opinion.