Matchmaking

So, I’m a bit confused, as of writing this I’m ranked diamond 5 (its fluctuated between 4-6 mostly this season) but most of the players I’m seeing in my games are onyx players. Can someone please explain to me how this is supposed to work? I’m lost trying to understand what I’m accomplishing by being in games with players ranked higher than me and typically better players than me.