because a pointer points to a set of memory of type what ever type you used. ie
int + char + bool is meant to hold a value of something like a byte. not super important to the example however. a pointer points to a group of memory that you can write to, so doing memory like that allows you to control how much and is useful for things like when you need to create a buffer or a container