Shepherd's pie is referred to as such when it contains lamb. On the other hand, cottage pie contains beef.