If you find your parrot fish lying on the bottom of the tank but still alive, it could be for a couple of reasons. They might simply be resting, or unfortunately, they could be suffering from a fungal infection like Saprolegnia, which requires treatment.

Normal Resting Behavior
Parrot fish sometimes rest at the bottom of the tank. If this behavior is occasional and the fish otherwise appears healthy, it is usually normal. There's no need for concern or intervention. They will resume normal swimming behavior after their rest.
Saprolegnia (Water Mold) Infection
However, if your parrot fish is frequently lying at the bottom of the tank, it could indicate a Saprolegnia infection, commonly known as water mold. Poor water quality is a primary cause. If you suspect water mold, immediately quarantine the affected fish because this infection is highly contagious. Change a substantial portion of the water, disinfect the tank, and give the infected fish a medicated bath using potassium permanganate or a commercial fish fungicide, like yellow powder. Consistent treatment for about a week should help the parrot fish recover.
Lack of Vitality
If the fish is lying down but becomes active when disturbed, it suggests a lack of vitality which usually stems from three main causes: poor water quality, low water temperature, or insufficient dissolved oxygen. Poor water conditions will cause significant stress in fish, and they will often spend a lot of time on the bottom. If the water is too cold, fish activity will decrease along with their appetite. Finally, if there is not enough dissolved oxygen in the tank, the fish will have reduced mobility and may stay on the bottom.
Detailed Solutions
To maintain a healthy environment for your parrot fish, regularly test the water parameters, including ammonia, nitrite, and nitrate levels, and perform partial water changes to maintain proper water quality. Invest in a good-quality aquarium heater to ensure a stable and suitable temperature for parrot fish, and utilize an air pump and air stone to increase dissolved oxygen levels in your tank. These steps, coupled with careful monitoring of your fish's behavior, will contribute to its long-term health and well-being.