EDIT: Let me stress again that this answer is vague and imprecise on purpose! In fact, it's easy to make modular forms of different weights appear even in the setting of elliptic curves, as the examples of the $j$ invariant and the Laurent developpment of the Weierstrass $\mathfrak{P}$ function show ; again, Serre's "A course in arithmetic" is a good reference.