what is the secret to creating interesting fleshed out characters

How do good writers do it? How do you flesh out a good character that the reader can see and care for in their mind