There was a fad for a while to keep crocodiles as pets. But it did not last very long. While crocodiles were popular, they were dressed in jewels. They were free to roam around a home or a temple. It was quite dangerous.
Historians believe that probably crocodiles became popular because the beloved Egyptian god Sobek had a crocodile head. Sobek was responsible for controlling water and marshes. He was a very important god.