What's up with compound words that contain two different kanji with the same meaning?

It’s not spaces, you just put some random words between <> and it will become invisible, but count towards the character count