Because to you it was granted, on behalf of Christ, not only to believe in him, but also on behalf of him to suffer.
Read all of Philippians 1 YLT
Read Philippians 1:29 in another translation