If you're hanging something heavy, such as a curtain rod or bookcase ... are hanging cabinets or other items that stick out ...
Studs are the internal framing that give a wall its strength. Because they can bear a lot of weight, studs are also used for hanging heavy objects. (For lightweight stuff like photos, posters and ...