This question is mostly about the human body, but it's also about life in general.
It's not difficult to notice a big different between the abundance of elements on Earth & that in the body. I've been pondering why. Such a huge question, but here I choose to focus on the big 4. Below is my current understanding, please correct me if I'm wrong or add things that I miss.
An umbrella reason for why $\ce{O}$ & $\ce{H}$ are prevalent is because $\ce{H2O}$ is such a wonderful solvent. Life generally depends on reactions to function, and they happen best when immersed in a liquid. Water is good and copious, hence life use it.
Another reason for $\ce{O}$ to be the most common element in our body is that it can oxidize things, which can become handy.
For $\ce{H}$ is that it's basically a proton, thus can be a "filler" in most situations.
$\ce{C}$ is the backbone of life because it's the element with the best bond force. In other words, not a goldilock but the GOLDilock. Life loves to handle such flexible tool, thus it uses carbon.
That leaves the question for $\ce{N}$. Why do we even use nitrogen? It's not anywhere close to the top of abundance in the Earth's crust. It does not have attractive characteristics like $\ce{O, C or H}$. One may say that it's dominant in the air, but just because there's a lot of $\ce{N}$ doesn't mean we evolve to use it. We can always eat dirt to get some hypothetical elementary replacement for $\ce{N}$, for example. Besides, life began in the ocean and there's little $\ce{N}$ there. Do fish have different big 4? I haven't looked into it, but I doubt it.
Both $\ce{H2O}$ and $\ce{C}$ have something "best" in their belt. I guess $\ce{N}$ must have some stuff of highest quality, too, but I have no clue what it is. So, even though my knowledge of the other 3 elements is crude, I'm bugged by nitrogen the most.