Hi,
This is correct behaviour. It's a security measure to ensure web can't access files they shouldn't.
Depending on your hosing situation, you need to do some changes.
If you are on a self-hosted solution, you should visit your web servers files and append /public/ to your root directory..
I suggest reading the install documentation here: https://flarum.org/docs/install.html
Note:
Plesk (baring the hosting providor has blocked it) let's you change webroot for all domains/subdomains/addon domains.
Cpanel is more tricky.
It only let you change webroot for subdomains and addondomains.
For main domain, your only option is to either move to a subdomain, or follow these instructions:
https://flarum.org/docs/install.html#customizing-paths
Hopefully this helps 🙂