Both of those things are also important in cameras, there is even sites that compare the size such as https://camerasize.com/. Cameras have got smaller in recent years and it makes the size makes a big difference to whether you take it with you on not or fits in your pocket or not for compact cameras. Ricoh’s gr4 camera is 0.5mm thinner than the previous model (gr3). Cameras are essentially smaller than they would be otherwise because they have replaceable batteries. People who need at more power usually use several batteries rather than use a bigger camera with more capacity.
Cameras also need to withstand drops for similar reasons to phones, it’s in you hand and you could drop it, also tripods can fall over, car mounts fall off etc.