Why can Disk Utility detect my SSD but the macOS installer can't?

My Mac couldn't boot and would was on the apple logo. This problem happened twice before, so I knew how to boot it in recovery mode. Disk Utility says that the disk is fine. However, when I tried to reinstall OS X, the installer didn't detect the drive. It only detected the drive after I erased it.

Why? And what does this say about my SSD? This problem has happened before and it's getting tiring to wipe everything and then reinstall everything back.

submitted by /u/hadil-bader
[link] [comments]