Why Only Write One Genre of Book?

There seems to be this unseen rule that writers can only write in one genre. That as writers our first published book sets our path for the rest of our careers. Why are we set to one path once our first publication hits the market? There is honestly no proven statistics that you will only…