Why do we have antenna ports, layers, and rank — aren’t they all the same?

If you’ve ever stared at a 5G protocol trace and wondered why there are so many names for “the signal” — Transport Block, Codeword, Layer…