As Luis Miguel Mantilla mentioned, you could start by checking out the guidelines — App Store Review Guidelines: 4.2 Minimum Functionality — pointed out be the person who rejected you.
Rejection of an app is extremely common with Apple, because the are very strict, bureaucratic and inflexible, in an attempt of trying to maintain a high quality app store. Even with big apps, it's very common for people to face many rejections before managing to get a build in.
Their strictness also causes their reviewers to either be imobile or seem dumb. For example, in a first app I tried to build, I had implemented a basic login initial screen; and, because they have guidelines for the reviewers about the login, the reviewer simply didn't do anything and rejected my app — I think I had to necessarily provide test users —, even though he could have simple created a dummy test user by himself — I had informed so in the build description.
Another way of solving your rejection problem is by contacting your reviewer directly. When your build is rejected, you will receive an email like this:
Dear <your_name>,
Your app, <app_name_and_build>, has been reviewed, but cannot be made
available for TestFlight beta testing.
For details, or to contact App Store Review, visit Resolution
Center in App Store Connect.
Best regards, App Store Review
By clicking on the Resolution Center link, you will be able to talk to the person and poke out what's really going on, instead of having to suffer from anxiety by endlessly speculating over it.
Lastly, this article was somewhat useful when I was first rejected.