How are a retangle and a pyramid the same? How are they different

They both are closed figures, and have area. They are different in number of sides, and angles inside.

Thank You!