You absorb the thoughts, behaviors, and style of speech of those you are around a lot.
This friend group is called your “reference group”. If you associate with upbeat people focused on growth and development, those things will come more easily to you.