People don't ride bikes to gain leg muscles because it's a sub-optimal way to do it. It's slower than squatting and DLing to build leg muscle. It still works, it's just the slow route, and people whose goal it is to build muscle want the faster routes.