You know how a puppy is a kind of dog, but not all dogs are puppies? Well, the same thing is true for lots of other categories of things, including squares and rectangles.
A rectangle can be tall, thin and short and fat or all the sides can have the same length. A square is a quadrilateral with all four angles right angles and all four sides of the same length.