Firefox sometimes uses more memory than it should. It is a very complicated issue caused my many things, including memory leaks, faulty third party applications, and a change in the habits of web users.
This article describes how to make Firefox use less memory (RAM).