One possible cause is that the Make Inventory Available checkbox is unmarked on the Location record.
Below are the steps on how to fix this:
1. Navigate to Setup> Company> Locations
2. Edit the Location record
3. Mark the Make Inventory Available checkbox
4. Click Save